mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Enhancement of properties tab for column's collection by adding Primary Key and Not NULL columns. #2411
This commit is contained in:
@@ -251,8 +251,13 @@ class ColumnsView(PGChildNodeView, DataTypeReader):
|
||||
|
||||
if not status:
|
||||
return internal_server_error(errormsg=res)
|
||||
|
||||
data = res['rows']
|
||||
for column in data:
|
||||
column_utils.column_formatter(self.conn, tid, column['attnum'],
|
||||
column)
|
||||
return ajax_response(
|
||||
response=res['rows'],
|
||||
response=data,
|
||||
status=200
|
||||
)
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ define('pgadmin.node.column', [
|
||||
node: 'column',
|
||||
label: gettext('Columns'),
|
||||
type: 'coll-column',
|
||||
columns: ['name', 'cltype', 'description'],
|
||||
columns: ['name', 'cltype', 'is_pk','attnotnull', 'description'],
|
||||
canDrop: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
||||
canDropCascade: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user