aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-19 07:50:09 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-19 07:50:09 +0100
commitab44569e558a2835022312c7fc20accc4f00215c (patch)
tree182e9e851bd32b6e71087abf6e0e159d4d266f04 /migrations/versions
parentEnable a remote upgrade on Heroku with Flask-migrate. (diff)
downloadnewspipe-ab44569e558a2835022312c7fc20accc4f00215c.tar.gz
newspipe-ab44569e558a2835022312c7fc20accc4f00215c.tar.bz2
newspipe-ab44569e558a2835022312c7fc20accc4f00215c.zip
Configuration file for Alembic on Heroku.
Diffstat (limited to 'migrations/versions')
-rw-r--r--migrations/versions/48f561c0ce6_add_column_entry_id.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/migrations/versions/48f561c0ce6_add_column_entry_id.py b/migrations/versions/48f561c0ce6_add_column_entry_id.py
new file mode 100644
index 00000000..3f52a7a9
--- /dev/null
+++ b/migrations/versions/48f561c0ce6_add_column_entry_id.py
@@ -0,0 +1,24 @@
+"""add column entry_id
+
+Revision ID: 48f561c0ce6
+Revises:
+Create Date: 2015-02-18 21:17:19.346998
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '48f561c0ce6'
+down_revision = None
+branch_labels = None
+depends_on = None
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.add_column('article', sa.Column('entry_id', sa.String(), nullable=True))
+
+
+def downgrade():
+ op.drop_column('article', 'entry_id')
bgstack15