From df351ce2dc3c61fff0ac2895758975a2b950c0ce Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 20 Mar 2020 22:41:53 +0100 Subject: fixed old migration script --- migrations/versions/48f561c0ce6_add_column_entry_id.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'migrations') diff --git a/migrations/versions/48f561c0ce6_add_column_entry_id.py b/migrations/versions/48f561c0ce6_add_column_entry_id.py index 35117965..ad05313f 100644 --- a/migrations/versions/48f561c0ce6_add_column_entry_id.py +++ b/migrations/versions/48f561c0ce6_add_column_entry_id.py @@ -15,13 +15,6 @@ depends_on = None import sqlalchemy as sa from alembic import op -import conf - def upgrade(): op.add_column("article", sa.Column("entry_id", sa.String(), nullable=True)) - - -def downgrade(): - if "sqlite" not in conf.SQLALCHEMY_DATABASE_URI: - op.drop_column("article", "entry_id") -- cgit