aboutsummaryrefslogtreecommitdiff
path: root/src/migrations1/script.py.mako
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-03 19:23:39 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-03 19:23:39 +0100
commita065a2c873e80ea933b5cb6ef542ad7a759714e1 (patch)
tree0b2f3e61764afc8589187383d7751bf84181650e /src/migrations1/script.py.mako
parentalembic patch (diff)
downloadnewspipe-a065a2c873e80ea933b5cb6ef542ad7a759714e1.tar.gz
newspipe-a065a2c873e80ea933b5cb6ef542ad7a759714e1.tar.bz2
newspipe-a065a2c873e80ea933b5cb6ef542ad7a759714e1.zip
carpy tests for alembic...
Diffstat (limited to 'src/migrations1/script.py.mako')
-rw-r--r--src/migrations1/script.py.mako24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/migrations1/script.py.mako b/src/migrations1/script.py.mako
new file mode 100644
index 00000000..43c09401
--- /dev/null
+++ b/src/migrations1/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