Skip to content

Conversation

@yogeshmahajan-1903
Copy link
Contributor

No description provided.



def upgrade():
op.add_column('server', sa.Column('db_alias', sa.String(length=256)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when adding new column to server always add autoincrement

    with op.batch_alter_table(
            "server", table_kwargs={'sqlite_autoincrement': True}) as batch_op:
        batch_op.add_column(sa.Column('tags', sa.JSON(), nullable=True))

'name': gettext('name'),
'port': gettext('Port'),
'db': gettext('Maintenance database'),
'db_alias': gettext('Database Alias '),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove leading space.

mode: ['properties', 'edit', 'create'], readonly: obj.isConnected,
disabled: function(state) {
return !isEmptyString(state.db);
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add help message here - This is helpful in pg_bouncer where server can be connected using database alias name

@akshay-joshi
Copy link
Contributor

As per discussion with Dave, this PR is not required anymore, hence closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants