aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/versions')
-rw-r--r--migrations/versions/661199d8768a_problem_with_the_last_upgrade.py24
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')
bgstack15