2017-04-23 22:06:55 -05:00
|
|
|
##########################################################################
|
|
|
|
##
|
|
|
|
## pgAdmin 4 - PostgreSQL Tools
|
|
|
|
##
|
2024-01-01 02:43:48 -06:00
|
|
|
## Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
2017-04-23 22:06:55 -05:00
|
|
|
## This software is released under the PostgreSQL Licence
|
|
|
|
##
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
"""${message}
|
|
|
|
|
|
|
|
Revision ID: ${up_revision}
|
|
|
|
Revises: ${down_revision | comma,n}
|
|
|
|
Create Date: ${create_date}
|
|
|
|
|
|
|
|
"""
|
2021-12-02 05:17:18 -06:00
|
|
|
from pgadmin.model import db
|
2017-04-23 22:06:55 -05:00
|
|
|
${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 01:16:30 -05:00
|
|
|
# pgAdmin only upgrades, downgrade not implemented.
|
2017-04-23 22:06:55 -05:00
|
|
|
${downgrades if downgrades else "pass"}
|