diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-20 22:43:10 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-20 22:43:10 +0100 |
commit | f6250a1871d59fb48b32594016fd9f6f2e2df81b (patch) | |
tree | 20d1d0877d47545c57e5a9e6f95bde9291a97774 /migrations/versions | |
parent | fixed old migration script (diff) | |
download | newspipe-f6250a1871d59fb48b32594016fd9f6f2e2df81b.tar.gz newspipe-f6250a1871d59fb48b32594016fd9f6f2e2df81b.tar.bz2 newspipe-f6250a1871d59fb48b32594016fd9f6f2e2df81b.zip |
fixed old migration script
Diffstat (limited to 'migrations/versions')
-rw-r--r-- | migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py b/migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py index 2e7e2553..53607f76 100644 --- a/migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py +++ b/migrations/versions/cde34831ea_adding_feed_and_user_attributes_for_.py @@ -14,8 +14,6 @@ from datetime import datetime import sqlalchemy as sa from alembic import op -import conf - def upgrade(): unix_start = datetime(1970, 1, 1) @@ -52,15 +50,3 @@ def upgrade(): "user", sa.Column("refresh_rate", sa.Integer(), nullable=True, default=60) ) # end Alembic commands ### - - -def downgrade(): - # commands auto generated by Alembic - please adjust! ### - if "sqlite" not in conf.SQLALCHEMY_DATABASE_URI: - op.drop_column("user", "refresh_rate") - op.drop_column("feed", "last_modified") - op.drop_column("feed", "last_error") - op.drop_column("feed", "error_count") - op.drop_column("feed", "last_retrieved") - op.drop_column("feed", "etag") - # end Alembic commands ### |