Skip to content

Commit 7641925

Browse files
review comments
1 parent b51c445 commit 7641925

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

web/migrations/versions/320114f59d9c_.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727

2828

2929
def upgrade():
30-
op.add_column('server', sa.Column('db_alias', sa.String(length=256)))
31-
30+
with op.batch_alter_table(
31+
"server", table_kwargs={'sqlite_autoincrement': True}) as batch_op:
32+
batch_op.add_column(sa.Column('db_alias', sa.String(length=256), nullable=True))
3233

3334
def downgrade():
3435
# pgAdmin only upgrades, downgrade not implemented.

web/pgadmin/browser/server_groups/servers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def update(self, gid, sid):
768768
'name': gettext('name'),
769769
'port': gettext('Port'),
770770
'db': gettext('Maintenance database'),
771-
'db_alias': gettext('Database Alias '),
771+
'db_alias': gettext('Database Alias'),
772772
'username': gettext('Username'),
773773
'comment': gettext('Comments'),
774774
'role': gettext('Role')

web/pgadmin/browser/server_groups/servers/static/js/server.ui.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ export default class ServerSchema extends BaseUISchema {
326326
disabled: function(state) {
327327
return !isEmptyString(state.db);
328328
},
329+
helpMessage: gettext('Specify the database alias to connect to the server using pg_bouncer.')
329330
},{
330331
id: 'username', label: gettext('Username'), type: 'text', group: gettext('Connection'),
331332
mode: ['properties', 'edit', 'create'],

0 commit comments

Comments
 (0)