aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-04 23:07:17 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-04 23:07:17 +0100
commit0ff04669d1ddeef5ce2c0191441f73f085b23403 (patch)
tree13cffa44ac4262e1154b17605a477ffc0a0cf32f
parentUpdated post deploy script for Heroku. (diff)
downloadnewspipe-0ff04669d1ddeef5ce2c0191441f73f085b23403.tar.gz
newspipe-0ff04669d1ddeef5ce2c0191441f73f085b23403.tar.bz2
newspipe-0ff04669d1ddeef5ce2c0191441f73f085b23403.zip
Updated migration script
-rw-r--r--migrations/versions/4b5c161e1ced_.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/migrations/versions/4b5c161e1ced_.py b/migrations/versions/4b5c161e1ced_.py
deleted file mode 100644
index 9abed84b..00000000
--- a/migrations/versions/4b5c161e1ced_.py
+++ /dev/null
@@ -1,42 +0,0 @@
-"""adding feed and user attributes for better feed retreiving
-
-Revision ID: 4b5c161e1ced
-Revises: None
-Create Date: 2015-01-17 01:04:10.187285
-
-"""
-from datetime import datetime
-
-# revision identifiers, used by Alembic.
-revision = '4b5c161e1ced'
-down_revision = '1b750a389c22'
-
-from alembic import op
-import sqlalchemy as sa
-
-
-def upgrade():
- unix_start = datetime(1970, 1, 1)
- # commands auto generated by Alembic - please adjust! ###
- op.add_column('feed', sa.Column('error_count', sa.Integer(), nullable=True,
- default=0, server_default="0"))
- op.add_column('feed', sa.Column('last_error', sa.String(), nullable=True))
- op.add_column('feed', sa.Column('last_modified', sa.DateTime(),
- nullable=True, default=unix_start, server_default=str(unix_start)))
- op.add_column('feed', sa.Column('last_retrieved', sa.DateTime(),
- nullable=True, default=unix_start, server_default=str(unix_start)))
- op.add_column('feed', sa.Column('etag', sa.String(), nullable=True))
- op.add_column('user', sa.Column('refresh_rate', sa.Integer(),
- nullable=True, default=60))
- # end Alembic commands ###
-
-
-def downgrade():
- # commands auto generated by Alembic - please adjust! ###
- op.drop_column('user', 'refresh_rate')
- op.drop_column('feed', 'last_modified')
- op.drop_column('feed', 'last_error')
- op.drop_column('feed', 'error_count')
- op.drop_column('feed', 'last_retrieved')
- op.drop_column('feed', 'etag')
- # end Alembic commands ###
bgstack15