diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-06 14:16:58 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-06 14:16:58 +0200 |
commit | 0a7f69cc1fc0e068c66ca34b3f4a44067cfe9761 (patch) | |
tree | 5212bc56c32c7f307ae642f877ab01aa70d43230 /migrations/versions | |
parent | Updated CHANGELOG. (diff) | |
download | newspipe-0a7f69cc1fc0e068c66ca34b3f4a44067cfe9761.tar.gz newspipe-0a7f69cc1fc0e068c66ca34b3f4a44067cfe9761.tar.bz2 newspipe-0a7f69cc1fc0e068c66ca34b3f4a44067cfe9761.zip |
Fetch feeds only if the user do not want to use its own crawler.
Diffstat (limited to 'migrations/versions')
-rw-r--r-- | migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py b/migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py new file mode 100644 index 00000000..5728449a --- /dev/null +++ b/migrations/versions/8bf5694c0b9e_add_column_automatic_crawling_to_the_.py @@ -0,0 +1,25 @@ +"""add column automatic_crawling to the user table + +Revision ID: 8bf5694c0b9e +Revises: 5553a6c05fa7 +Create Date: 2016-10-06 13:47:32.784711 + +""" + +# revision identifiers, used by Alembic. +revision = '8bf5694c0b9e' +down_revision = '5553a6c05fa7' +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.add_column('user', sa.Column('automatic_crawling', + sa.Boolean(), default=True)) + + +def downgrade(): + op.drop_column('user', 'automatic_crawling') |