diff options
| author | Dennis Fink | 2026-10-27 23:16:27 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-10-27 23:18:45 +0100 |
| commit | 17ab56a3c7d3dbb3d66edf380ab637a61cefe50c (patch) | |
| tree | 1626e3e1d402a6614a1cec4c2c6719d301f39bac /migrations/script.py.mako | |
| parent | 5afb245d13b91047d68d7b7343245c41b6460953 (diff) | |
| download | webmentions-ssg-17ab56a3c7d3dbb3d66edf380ab637a61cefe50c.tar.gz webmentions-ssg-17ab56a3c7d3dbb3d66edf380ab637a61cefe50c.zip | |
feat(core): add database CLI
Make database initialization and upgrades explicit so new installations
cannot silently modify an existing or unversioned schema.
Keep Flask-Migrate commands available separately and package the
migration environment with the application for reliable deployment.
Diffstat (limited to 'migrations/script.py.mako')
| -rw-r--r-- | migrations/script.py.mako | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/migrations/script.py.mako b/migrations/script.py.mako deleted file mode 100644 index 2c01563..0000000 --- a/migrations/script.py.mako +++ /dev/null @@ -1,24 +0,0 @@ -"""${message} - -Revision ID: ${up_revision} -Revises: ${down_revision | comma,n} -Create Date: ${create_date} - -""" -from alembic import op -import sqlalchemy as sa -${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(): - ${downgrades if downgrades else "pass"} |
