aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-20 22:45:46 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-20 22:45:46 +0100
commit47769cbe3f70d507cf51168f5ffeee5ccbca7b71 (patch)
tree86eba200c8c927c75b756f29e920345eedbb6c08 /migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
parentfixed old migration script (diff)
downloadnewspipe-47769cbe3f70d507cf51168f5ffeee5ccbca7b71.tar.gz
newspipe-47769cbe3f70d507cf51168f5ffeee5ccbca7b71.tar.bz2
newspipe-47769cbe3f70d507cf51168f5ffeee5ccbca7b71.zip
fixed old migration script
Diffstat (limited to 'migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py')
-rw-r--r--migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py b/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
index b81e4520..a6aeb8c9 100644
--- a/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
+++ b/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
@@ -15,8 +15,6 @@ from datetime import datetime
import sqlalchemy as sa
from alembic import op
-import conf
-
def upgrade():
unix_start = datetime(1970, 1, 1)
@@ -32,19 +30,3 @@ def upgrade():
server_default=str(unix_start),
),
)
-
-
-def downgrade():
- unix_start = datetime(1970, 1, 1)
- if "sqlite" not in conf.SQLALCHEMY_DATABASE_URI:
- op.drop_column("feed", "last_modified")
- op.add_column(
- "feed",
- sa.Column(
- "last_modified",
- sa.DateTime(),
- nullable=True,
- default=unix_start,
- server_default=unix_start,
- ),
- )
bgstack15