aboutsummaryrefslogtreecommitdiff
path: root/alembic/script.py.mako
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-18 21:39:28 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-18 21:39:28 +0100
commit045bb9edc5f8b4a1c130811cc39f19417904beed (patch)
tree85132a63b0ae8c48d9743d64dca0c87858077abe /alembic/script.py.mako
parentUpdated README. (diff)
downloadnewspipe-045bb9edc5f8b4a1c130811cc39f19417904beed.tar.gz
newspipe-045bb9edc5f8b4a1c130811cc39f19417904beed.tar.bz2
newspipe-045bb9edc5f8b4a1c130811cc39f19417904beed.zip
Alembic is magic!
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 00000000..43c09401
--- /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}
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = ${repr(up_revision)}
+down_revision = ${repr(down_revision)}
+branch_labels = ${repr(branch_labels)}
+depends_on = ${repr(depends_on)}
+
+from alembic import op
+import sqlalchemy as sa
+${imports if imports else ""}
+
+def upgrade():
+ ${upgrades if upgrades else "pass"}
+
+
+def downgrade():
+ ${downgrades if downgrades else "pass"}
bgstack15