aboutsummaryrefslogtreecommitdiff
path: root/alembic/versions
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-18 21:39:28 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-18 21:39:28 +0100
commit045bb9edc5f8b4a1c130811cc39f19417904beed (patch)
tree85132a63b0ae8c48d9743d64dca0c87858077abe /alembic/versions
parentUpdated README. (diff)
downloadnewspipe-045bb9edc5f8b4a1c130811cc39f19417904beed.tar.gz
newspipe-045bb9edc5f8b4a1c130811cc39f19417904beed.tar.bz2
newspipe-045bb9edc5f8b4a1c130811cc39f19417904beed.zip
Alembic is magic!
Diffstat (limited to 'alembic/versions')
-rw-r--r--alembic/versions/48f561c0ce6_add_column_entry_id.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/alembic/versions/48f561c0ce6_add_column_entry_id.py b/alembic/versions/48f561c0ce6_add_column_entry_id.py
new file mode 100644
index 00000000..3f52a7a9
--- /dev/null
+++ b/alembic/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