2017-04-24 08:36:55 +05:30
|
|
|
##########################################################################
|
|
|
|
|
##
|
|
|
|
|
## pgAdmin 4 - PostgreSQL Tools
|
|
|
|
|
##
|
2021-01-04 15:34:45 +05:30
|
|
|
## Copyright (C) 2013 - 2021, The pgAdmin Development Team
|
2017-04-24 08:36:55 +05:30
|
|
|
## This software is released under the PostgreSQL Licence
|
|
|
|
|
##
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
|
|
"""${message}
|
|
|
|
|
|
|
|
|
|
Revision ID: ${up_revision}
|
|
|
|
|
Revises: ${down_revision | comma,n}
|
|
|
|
|
Create Date: ${create_date}
|
|
|
|
|
|
|
|
|
|
"""
|
2021-09-29 13:24:18 +05:30
|
|
|
from alembic import op
|
|
|
|
|
import sqlalchemy as sa
|
2017-04-24 08:36:55 +05:30
|
|
|
${imports if imports else ""}
|
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
|
|
revision = ${repr(up_revision)}
|
|
|
|
|
down_revision = ${repr(down_revision)}
|
|
|
|
|
branch_labels = ${repr(branch_labels)}
|
|
|
|
|
depends_on = ${repr(depends_on)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
|
${upgrades if upgrades else "pass"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
2020-07-24 11:46:30 +05:30
|
|
|
# pgAdmin only upgrades, downgrade not implemented.
|
2017-04-24 08:36:55 +05:30
|
|
|
${downgrades if downgrades else "pass"}
|