diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-18 21:39:28 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-18 21:39:28 +0100 |
commit | 045bb9edc5f8b4a1c130811cc39f19417904beed (patch) | |
tree | 85132a63b0ae8c48d9743d64dca0c87858077abe /alembic/script.py.mako | |
parent | Updated README. (diff) | |
download | newspipe-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.mako | 24 |
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"} |