diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-19 07:50:09 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-19 07:50:09 +0100 |
commit | ab44569e558a2835022312c7fc20accc4f00215c (patch) | |
tree | 182e9e851bd32b6e71087abf6e0e159d4d266f04 /migrations/script.py.mako | |
parent | Enable a remote upgrade on Heroku with Flask-migrate. (diff) | |
download | newspipe-ab44569e558a2835022312c7fc20accc4f00215c.tar.gz newspipe-ab44569e558a2835022312c7fc20accc4f00215c.tar.bz2 newspipe-ab44569e558a2835022312c7fc20accc4f00215c.zip |
Configuration file for Alembic on Heroku.
Diffstat (limited to 'migrations/script.py.mako')
-rwxr-xr-x | migrations/script.py.mako | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/migrations/script.py.mako b/migrations/script.py.mako new file mode 100755 index 00000000..95702017 --- /dev/null +++ b/migrations/script.py.mako @@ -0,0 +1,22 @@ +"""${message} + +Revision ID: ${up_revision} +Revises: ${down_revision} +Create Date: ${create_date} + +""" + +# revision identifiers, used by Alembic. +revision = ${repr(up_revision)} +down_revision = ${repr(down_revision)} + +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"} |