diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-13 11:35:10 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-13 11:35:10 +0100 |
commit | 9c2978a70921e648e27afe9027664d37d2c59158 (patch) | |
tree | 45f5c6e0c23c2f4c6a55caa2c360aa212364fbba | |
parent | alembic id (diff) | |
download | newspipe-9c2978a70921e648e27afe9027664d37d2c59158.tar.gz newspipe-9c2978a70921e648e27afe9027664d37d2c59158.tar.bz2 newspipe-9c2978a70921e648e27afe9027664d37d2c59158.zip |
problem with Alembic fixed...
-rw-r--r-- | migrations/versions/661199d8768a_problem_with_the_last_upgrade.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py b/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py new file mode 100644 index 00000000..1470dd04 --- /dev/null +++ b/migrations/versions/661199d8768a_problem_with_the_last_upgrade.py @@ -0,0 +1,24 @@ +"""problem with the last upgrade + +Revision ID: 661199d8768a +Revises: 3f83bfe93fc +Create Date: 2016-02-13 11:33:14.183576 + +""" + +# revision identifiers, used by Alembic. +revision = '661199d8768a' +down_revision = '3f83bfe93fc' +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.add_column('article', sa.Column('updated_date', sa.DateTime(), nullable=True)) + + +def downgrade(): + op.drop_column('article', 'updated_date') |