diff options
Diffstat (limited to 'migrations')
-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') |