Skip to content

Commit

Permalink
Enhancement of properties tab for column's collection by adding Prima…
Browse files Browse the repository at this point in the history
…ry Key and Not NULL columns. pgadmin-org#2411
  • Loading branch information
anilsahoo20 authored Sep 7, 2023
1 parent e938461 commit 3240392
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,13 @@ def list(self, gid, sid, did, scid, tid):

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
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 3240392

Please sign in to comment.