diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-03 19:23:39 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-03 19:23:39 +0100 |
commit | a065a2c873e80ea933b5cb6ef542ad7a759714e1 (patch) | |
tree | 0b2f3e61764afc8589187383d7751bf84181650e /migrations/script.py.mako | |
parent | alembic patch (diff) | |
download | newspipe-a065a2c873e80ea933b5cb6ef542ad7a759714e1.tar.gz newspipe-a065a2c873e80ea933b5cb6ef542ad7a759714e1.tar.bz2 newspipe-a065a2c873e80ea933b5cb6ef542ad7a759714e1.zip |
carpy tests for alembic...
Diffstat (limited to 'migrations/script.py.mako')
-rw-r--r-- | migrations/script.py.mako | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/migrations/script.py.mako b/migrations/script.py.mako new file mode 100644 index 00000000..43c09401 --- /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} + +""" + +# 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"} |