summaryrefslogtreecommitdiffstats
path: root/alembic/script.py.mako
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-11-15 18:35:22 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-11-15 18:35:22 +0100
commit7b2b16af1bc952d6f283a72bebf7becacedbd748 (patch)
tree0f16f363ca1d25994cf288a062b4540ae802494c /alembic/script.py.mako
parentfixed scoping (diff)
downloadbiblos-stat-7b2b16af1bc952d6f283a72bebf7becacedbd748.tar
biblos-stat-7b2b16af1bc952d6f283a72bebf7becacedbd748.tar.gz
biblos-stat-7b2b16af1bc952d6f283a72bebf7becacedbd748.tar.bz2
biblos-stat-7b2b16af1bc952d6f283a72bebf7becacedbd748.tar.lz
biblos-stat-7b2b16af1bc952d6f283a72bebf7becacedbd748.tar.xz
biblos-stat-7b2b16af1bc952d6f283a72bebf7becacedbd748.tar.zst
biblos-stat-7b2b16af1bc952d6f283a72bebf7becacedbd748.zip
Diffstat (limited to 'alembic/script.py.mako')
-rw-r--r--alembic/script.py.mako24
1 files changed, 24 insertions, 0 deletions
diff --git a/alembic/script.py.mako b/alembic/script.py.mako
new file mode 100644
index 0000000..55df286
--- /dev/null
+++ b/alembic/script.py.mako
@@ -0,0 +1,24 @@
+"""${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() -> None:
+ ${upgrades if upgrades else "pass"}
+
+
+def downgrade() -> None:
+ ${downgrades if downgrades else "pass"}