diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-01-15 18:50:05 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2015-03-03 22:22:14 +0100 |
commit | f5c46617e377899ff61a38c80150ab53d2b33edc (patch) | |
tree | 462b50edbcb3ddcab918901ea9bdf63f05f3139c /migrations/versions | |
parent | splitting and refactoring the Restful api part (diff) | |
download | newspipe-f5c46617e377899ff61a38c80150ab53d2b33edc.tar.gz newspipe-f5c46617e377899ff61a38c80150ab53d2b33edc.tar.bz2 newspipe-f5c46617e377899ff61a38c80150ab53d2b33edc.zip |
adding news fields and migrations scripts
Diffstat (limited to 'migrations/versions')
-rw-r--r-- | migrations/versions/4b5c161e1ced_.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/migrations/versions/4b5c161e1ced_.py b/migrations/versions/4b5c161e1ced_.py new file mode 100644 index 00000000..e740e827 --- /dev/null +++ b/migrations/versions/4b5c161e1ced_.py @@ -0,0 +1,32 @@ +"""empty message + +Revision ID: 4b5c161e1ced +Revises: None +Create Date: 2015-01-17 01:04:10.187285 + +""" + +# revision identifiers, used by Alembic. +revision = '4b5c161e1ced' +down_revision = None + +from alembic import op +import sqlalchemy as sa + + +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('user', sa.Column('refresh_rate', sa.Integer(), 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_error') + op.drop_column('feed', 'error_count') + ### end Alembic commands ### |