2022-10-20 05:48:41 -05:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2023-01-02 00:23:55 -06:00
|
|
|
# Copyright (C) 2013 - 2023, The pgAdmin Development Team
|
2022-10-20 05:48:41 -05:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
2018-03-12 15:45:56 -05:00
|
|
|
"""Added service field option in server table (RM#3140)
|
|
|
|
|
|
|
|
Revision ID: 50aad68f99c2
|
|
|
|
Revises: 02b9dccdcfcb
|
|
|
|
Create Date: 2018-03-07 11:53:57.584280
|
|
|
|
|
|
|
|
"""
|
2022-10-20 05:48:41 -05:00
|
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
2018-03-12 15:45:56 -05:00
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
|
revision = '50aad68f99c2'
|
|
|
|
down_revision = '02b9dccdcfcb'
|
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2022-10-20 05:48:41 -05:00
|
|
|
op.add_column('server', sa.Column('service', sa.String()))
|
|
|
|
with op.batch_alter_table("server") as batch_op:
|
|
|
|
batch_op.alter_column('host', nullable=True)
|
|
|
|
batch_op.alter_column('maintenance_db', nullable=True)
|
2018-03-12 15:45:56 -05:00
|
|
|
|
2020-07-24 01:16:30 -05:00
|
|
|
|
2018-03-12 15:45:56 -05:00
|
|
|
def downgrade():
|
2020-07-24 01:16:30 -05:00
|
|
|
# pgAdmin only upgrades, downgrade not implemented.
|
2018-03-12 15:45:56 -05:00
|
|
|
pass
|