From 106d83ea8157c6f14a399716381ddf07ac21a024 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 24 Oct 2016 13:30:11 +0200 Subject: add the possibility to mak a feed as private --- ...6f33dd_add_column_private_to_the_feeds_table.py | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 migrations/versions/be2b8b6f33dd_add_column_private_to_the_feeds_table.py (limited to 'migrations/versions') 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') -- cgit