2022-10-20 05:48:41 -05:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
|
|
|
# Copyright (C) 2013 - 2022, The pgAdmin Development Team
|
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
"""
|
2020-06-30 08:45:23 -05:00
|
|
|
|
|
|
|
Revision ID: 84700139beb0
|
|
|
|
Revises: d39482714a2e
|
|
|
|
Create Date: 2020-06-24 15:53:56.489518
|
|
|
|
|
|
|
|
"""
|
2022-10-20 05:48:41 -05:00
|
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
2020-06-30 08:45:23 -05:00
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
|
revision = '84700139beb0'
|
|
|
|
down_revision = 'd39482714a2e'
|
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2022-10-20 05:48:41 -05:00
|
|
|
op.create_table(
|
|
|
|
'database',
|
|
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
|
|
sa.Column('schema_res', sa.String()),
|
|
|
|
sa.Column('server', sa.Integer(), nullable=False),
|
|
|
|
sa.ForeignKeyConstraint(['server'], ['server.id'], ),
|
|
|
|
sa.PrimaryKeyConstraint('id', 'server'))
|
2020-06-30 08:45:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
2020-07-24 01:16:30 -05:00
|
|
|
# pgAdmin only upgrades, downgrade not implemented.
|
2020-06-30 08:45:23 -05:00
|
|
|
pass
|