aboutsummaryrefslogtreecommitdiff
path: root/migrations/script.py.mako
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-08-19 12:28:53 -0400
committerGalen Guyer <galen@galenguyer.com>2021-08-19 12:28:53 -0400
commit9dda1c9ed4e7e039ac894179b2d06c5e6c68180f (patch)
tree913af0ebf64da9c8f53f7a9336a4af5221f01306 /migrations/script.py.mako
parent3a4c566701e552a61cbc2462b4b0d69439b720e1 (diff)
add flask db migrations
Diffstat (limited to 'migrations/script.py.mako')
-rw-r--r--migrations/script.py.mako24
1 files changed, 24 insertions, 0 deletions
diff --git a/migrations/script.py.mako b/migrations/script.py.mako
new file mode 100644
index 0000000..2c01563
--- /dev/null
+++ b/migrations/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"}