From 9c2978a70921e648e27afe9027664d37d2c59158 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 13 Feb 2016 11:35:10 +0100 Subject: problem with Alembic fixed... --- .../661199d8768a_problem_with_the_last_upgrade.py | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 migrations/versions/661199d8768a_problem_with_the_last_upgrade.py (limited to 'migrations') 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') -- cgit