diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-04-03 10:39:14 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-04-03 10:39:14 +0200 |
commit | a7929dc1d904289f5db7df673ff788c4ca89c68f (patch) | |
tree | fd5cc3201492c048c524283a65138c5b9187b6df /migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py | |
parent | speed improvements to the /history page (diff) | |
download | newspipe-a7929dc1d904289f5db7df673ff788c4ca89c68f.tar.gz newspipe-a7929dc1d904289f5db7df673ff788c4ca89c68f.tar.bz2 newspipe-a7929dc1d904289f5db7df673ff788c4ca89c68f.zip |
fixed erros reported by flake.
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_.py | 23 |
1 files changed, 11 insertions, 12 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 a6aeb8c9..7aea3040 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 @@ -18,15 +18,14 @@ from alembic import op def upgrade(): 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.String(), - nullable=True, - default=unix_start, - server_default=str(unix_start), - ), - ) + op.drop_column("feed", "last_modified") + op.add_column( + "feed", + sa.Column( + "last_modified", + sa.String(), + nullable=True, + default=unix_start, + server_default=str(unix_start), + ), + ) |