diff options
Diffstat (limited to 'migrations/versions/4b5c161e1ced_.py')
-rw-r--r-- | migrations/versions/4b5c161e1ced_.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/migrations/versions/4b5c161e1ced_.py b/migrations/versions/4b5c161e1ced_.py index e740e827..1efb5f81 100644 --- a/migrations/versions/4b5c161e1ced_.py +++ b/migrations/versions/4b5c161e1ced_.py @@ -1,4 +1,4 @@ -"""empty message +"""adding feed and user attributes for better feed retreiving Revision ID: 4b5c161e1ced Revises: None @@ -8,7 +8,7 @@ Create Date: 2015-01-17 01:04:10.187285 # revision identifiers, used by Alembic. revision = '4b5c161e1ced' -down_revision = None +down_revision = '48f561c0ce6' from alembic import op import sqlalchemy as sa @@ -18,15 +18,19 @@ def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.add_column('feed', sa.Column('error_count', sa.Integer(), nullable=True)) op.add_column('feed', sa.Column('last_error', sa.String(), nullable=True)) - op.add_column('feed', sa.Column('last_refreshed', sa.DateTime(), nullable=True)) + op.add_column('feed', sa.Column('last_modified', sa.DateTime(), nullable=True)) + op.add_column('feed', sa.Column('etag', sa.String(), nullable=True)) op.add_column('user', sa.Column('refresh_rate', sa.Integer(), nullable=True)) + op.add_column('article', sa.Column('guid', sa.String(), nullable=True)) ### end Alembic commands ### def downgrade(): ### commands auto generated by Alembic - please adjust! ### op.drop_column('user', 'refresh_rate') - op.drop_column('feed', 'last_refreshed') + op.drop_column('feed', 'last_modified') op.drop_column('feed', 'last_error') op.drop_column('feed', 'error_count') + op.drop_column('feed', 'etag') + op.drop_column('article', 'guid') ### end Alembic commands ### |