2022-10-20 05:48:41 -05:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2024-12-31 23:56:42 -06:00
|
|
|
# Copyright (C) 2013 - 2025, The pgAdmin Development Team
|
2022-10-20 05:48:41 -05:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
"""
|
2021-01-13 00:48:16 -06:00
|
|
|
|
|
|
|
Revision ID: a39bd015b644
|
|
|
|
Revises: 81c7ffeffeee
|
|
|
|
Create Date: 2021-01-12 15:46:49.283021
|
|
|
|
|
|
|
|
"""
|
2022-10-20 05:48:41 -05:00
|
|
|
from alembic import op
|
2021-01-13 00:48:16 -06:00
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
|
revision = 'a39bd015b644'
|
|
|
|
down_revision = '81c7ffeffeee'
|
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2022-10-20 05:48:41 -05:00
|
|
|
with op.batch_alter_table("sharedserver") as batch_op:
|
|
|
|
batch_op.drop_constraint('ck_shared_server_port')
|
|
|
|
batch_op.alter_column('port', nullable=True)
|
|
|
|
batch_op.alter_column('maintenance_db', nullable=True)
|
2021-01-13 00:48:16 -06:00
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# pgAdmin only upgrades, downgrade not implemented.
|
|
|
|
pass
|