aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-20 22:41:53 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-20 22:41:53 +0100
commitdf351ce2dc3c61fff0ac2895758975a2b950c0ce (patch)
treed7260d877cde7de7a1ce73fffe8e323191b58f1c
parentMerge branch 'master' of git.sr.ht:~cedric/newspipe (diff)
downloadnewspipe-df351ce2dc3c61fff0ac2895758975a2b950c0ce.tar.gz
newspipe-df351ce2dc3c61fff0ac2895758975a2b950c0ce.tar.bz2
newspipe-df351ce2dc3c61fff0ac2895758975a2b950c0ce.zip
fixed old migration script
-rw-r--r--migrations/versions/48f561c0ce6_add_column_entry_id.py7
1 files changed, 0 insertions, 7 deletions
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")
bgstack15