37 lines
915 B
Python
37 lines
915 B
Python
##########################################################################
|
|
#
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# Copyright (C) 2013 - 2025, The pgAdmin Development Team
|
|
# This software is released under the PostgreSQL Licence
|
|
#
|
|
##########################################################################
|
|
|
|
"""
|
|
|
|
Revision ID: 1f0eddc8fc79
|
|
Revises: e982c040d9b5
|
|
Create Date: 2025-03-26 15:58:24.131719
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from pgadmin.utils.constants import RESTRICTION_TYPE_DATABASES
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '1f0eddc8fc79'
|
|
down_revision = 'e982c040d9b5'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.add_column('server',
|
|
sa.Column('db_res_type', sa.String(length=32),
|
|
server_default=RESTRICTION_TYPE_DATABASES))
|
|
|
|
|
|
def downgrade():
|
|
# pgAdmin only upgrades, downgrade not implemented.
|
|
pass
|