diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-13 10:59:08 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-13 10:59:08 +0100 |
commit | 646640da5cec286ed59a99af8039f5f5feabec47 (patch) | |
tree | 4c9377e5f2f532e815fa1745c3958c1965764c1d /migrations/versions | |
parent | The OPML generation now includes the category of the feeds. (diff) | |
download | newspipe-646640da5cec286ed59a99af8039f5f5feabec47.tar.gz newspipe-646640da5cec286ed59a99af8039f5f5feabec47.tar.bz2 newspipe-646640da5cec286ed59a99af8039f5f5feabec47.zip |
The date of modification of articles is now used to detect changes.
Diffstat (limited to 'migrations/versions')
-rw-r--r-- | migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py b/migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py new file mode 100644 index 00000000..6e12964f --- /dev/null +++ b/migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py @@ -0,0 +1,24 @@ +"""add updated_date column to article table + +Revision ID: 7f973d010686 +Revises: 25ca960a207 +Create Date: 2016-02-12 21:51:40.868539 + +""" + +# revision identifiers, used by Alembic. +revision = '7f973d010686' +down_revision = '25ca960a207' +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.add_column('article', sa.Column('updated_date', sa.DateTime(), nullable=True)) + + +def downgrade(): + op.drop_column('article', 'updated_date') |