aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-05-18 23:05:14 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-07-02 15:34:16 +0200
commit84e335ebe6ffdd0d543e2a52060b417ba89ff378 (patch)
treeb184d049b8e7b72372ba0b67a889bb82b82534ac /migrations
parentsqlite can't drop column, ignoring drop statement (diff)
downloadnewspipe-84e335ebe6ffdd0d543e2a52060b417ba89ff378.tar.gz
newspipe-84e335ebe6ffdd0d543e2a52060b417ba89ff378.tar.bz2
newspipe-84e335ebe6ffdd0d543e2a52060b417ba89ff378.zip
adding filters field
Diffstat (limited to 'migrations')
-rw-r--r--migrations/versions/422da2d0234_adding_filters_field.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/migrations/versions/422da2d0234_adding_filters_field.py b/migrations/versions/422da2d0234_adding_filters_field.py
new file mode 100644
index 00000000..bcbdf042
--- /dev/null
+++ b/migrations/versions/422da2d0234_adding_filters_field.py
@@ -0,0 +1,22 @@
+"""adding filters field
+
+Revision ID: 422da2d0234
+Revises: 17dcb75f3fe
+Create Date: 2015-05-18 23:03:15.809549
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '422da2d0234'
+down_revision = '17dcb75f3fe'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.add_column('feed', sa.Column('filters', sa.PickleType(), nullable=True))
+
+
+def downgrade():
+ op.drop_column('feed', 'filters')
bgstack15