diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-24 13:30:11 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-24 13:30:11 +0200 |
commit | 106d83ea8157c6f14a399716381ddf07ac21a024 (patch) | |
tree | fab0f6c0fa0dd449b52242377da17c97e0bb8168 /migrations/versions | |
parent | Updated deprecated code. (diff) | |
download | newspipe-106d83ea8157c6f14a399716381ddf07ac21a024.tar.gz newspipe-106d83ea8157c6f14a399716381ddf07ac21a024.tar.bz2 newspipe-106d83ea8157c6f14a399716381ddf07ac21a024.zip |
add the possibility to mak a feed as private
Diffstat (limited to 'migrations/versions')
-rw-r--r-- | migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py b/migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py new file mode 100644 index 00000000..c41aa12a --- /dev/null +++ b/migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py @@ -0,0 +1,25 @@ +"""add column private to the feeds table + +Revision ID: be2b8b6f33dd +Revises: fa10b0bdd045 +Create Date: 2016-10-24 13:28:55.964803 + +""" + +# revision identifiers, used by Alembic. +revision = 'be2b8b6f33dd' +down_revision = 'fa10b0bdd045' +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.add_column('feed', sa.Column('private', + sa.Boolean(), default=False)) + + +def downgrade(): + op.drop_column('feed', 'private') |