aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-13 11:35:10 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-13 11:35:10 +0100
commit9c2978a70921e648e27afe9027664d37d2c59158 (patch)
tree45f5c6e0c23c2f4c6a55caa2c360aa212364fbba /migrations/versions
parentalembic id (diff)
downloadnewspipe-9c2978a70921e648e27afe9027664d37d2c59158.tar.gz
newspipe-9c2978a70921e648e27afe9027664d37d2c59158.tar.bz2
newspipe-9c2978a70921e648e27afe9027664d37d2c59158.zip
problem with Alembic fixed...
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