mirror of
https://github.com/quay/quay.git
synced 2026-01-27 18:42:52 +03:00
* Move truthy_bool to a neutral location. * Add dba operator migration version generation code. Change existing migrations to use an injected and wrapped op. * Generate databasemigration hints files for all existing migrations. * Reformat with black.
22 lines
425 B
Mako
22 lines
425 B
Mako
"""${message}
|
|
|
|
Revision ID: ${up_revision}
|
|
Revises: ${down_revision}
|
|
Create Date: ${create_date}
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = ${repr(up_revision)}
|
|
down_revision = ${repr(down_revision)}
|
|
|
|
import sqlalchemy as sa
|
|
${imports if imports else ""}
|
|
|
|
def upgrade(op, tables, tester):
|
|
${upgrades if upgrades else "pass"}
|
|
|
|
|
|
def downgrade(op, tables, tester):
|
|
${downgrades if downgrades else "pass"}
|
|
|