From f6250a1871d59fb48b32594016fd9f6f2e2df81b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 20 Mar 2020 22:43:10 +0100 Subject: fixed old migration script --- .../cde34831ea_adding_feed_and_user_attributes_for_.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'migrations') 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 ### -- cgit