summaryrefslogtreecommitdiff
path: root/alembic/script.py.mako
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@gmail.com>2022-02-24 02:57:29 +0200
committerRasmus Luha <rasmus.luha@gmail.com>2022-02-24 02:57:29 +0200
commit3ce694bbebb9c24606e83f8923ca8055b7c9c63d (patch)
tree79bdc75a28eadabb18fb65978f0dec914eea546d /alembic/script.py.mako
parentf1ab105a7620160c16d7c91bdf3ca1cff6deef7c (diff)
Added Alembic stuff
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..2c01563
--- /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():
+ ${upgrades if upgrades else "pass"}
+
+
+def downgrade():
+ ${downgrades if downgrades else "pass"}