mirror of
https://github.com/mealie-recipes/mealie.git
synced 2024-11-04 12:40:22 -08:00
29 lines
603 B
Mako
29 lines
603 B
Mako
"""${message}
|
|
|
|
Revision ID: ${up_revision}
|
|
Revises: ${down_revision | comma,n}
|
|
Create Date: ${create_date}
|
|
|
|
"""
|
|
import sqlalchemy as sa
|
|
|
|
import mealie.db.migration_types
|
|
from alembic import op
|
|
% if imports:
|
|
${imports}
|
|
% endif
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = ${repr(up_revision)}
|
|
down_revision: str | None = ${repr(down_revision)}
|
|
branch_labels: str | tuple[str, ...] | None = ${repr(branch_labels)}
|
|
depends_on: str | tuple[str, ...] | None = ${repr(depends_on)}
|
|
|
|
|
|
def upgrade():
|
|
${upgrades if upgrades else "pass"}
|
|
|
|
|
|
def downgrade():
|
|
${downgrades if downgrades else "pass"}
|
|
|