aboutsummaryrefslogtreecommitdiff
path: root/src/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-03 19:23:39 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-03 19:23:39 +0100
commita065a2c873e80ea933b5cb6ef542ad7a759714e1 (patch)
tree0b2f3e61764afc8589187383d7751bf84181650e /src/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
parentalembic patch (diff)
downloadnewspipe-a065a2c873e80ea933b5cb6ef542ad7a759714e1.tar.gz
newspipe-a065a2c873e80ea933b5cb6ef542ad7a759714e1.tar.bz2
newspipe-a065a2c873e80ea933b5cb6ef542ad7a759714e1.zip
carpy tests for alembic...
Diffstat (limited to 'src/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py')
-rw-r--r--src/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py b/src/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
deleted file mode 100644
index 035646c6..00000000
--- a/src/migrations/versions/17dcb75f3fe_changed_the_type_of_the_column_last_.py
+++ /dev/null
@@ -1,34 +0,0 @@
-"""changed the type of the column 'last_modified' to string.
-
-Revision ID: 17dcb75f3fe
-Revises: cde34831ea
-Create Date: 2015-03-10 14:20:53.676344
-
-"""
-
-# revision identifiers, used by Alembic.
-revision = '17dcb75f3fe'
-down_revision = 'cde34831ea'
-
-from datetime import datetime
-import conf
-from alembic import op
-import sqlalchemy as sa
-
-
-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)))
-
-
-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