aboutsummaryrefslogtreecommitdiff
path: root/src/migrations/versions
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-01-06 21:54:31 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-01-06 21:54:31 +0100
commite4042c4b31267670e52a7d3f8154d9aaf5651ffa (patch)
treeb9b40806270c0482060ff4ec383478960e03013b /src/migrations/versions
parentMinor edit to the /feed page (template). (diff)
downloadnewspipe-e4042c4b31267670e52a7d3f8154d9aaf5651ffa.tar.gz
newspipe-e4042c4b31267670e52a7d3f8154d9aaf5651ffa.tar.bz2
newspipe-e4042c4b31267670e52a7d3f8154d9aaf5651ffa.zip
it seemms that alembic do not find the models
Diffstat (limited to 'src/migrations/versions')
-rw-r--r--src/migrations/versions/db64b766362f_add_notes_column_for_articles.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/migrations/versions/db64b766362f_add_notes_column_for_articles.py b/src/migrations/versions/db64b766362f_add_notes_column_for_articles.py
new file mode 100644
index 00000000..3d25b004
--- /dev/null
+++ b/src/migrations/versions/db64b766362f_add_notes_column_for_articles.py
@@ -0,0 +1,22 @@
+"""Add notes column for articles.
+
+Revision ID: db64b766362f
+Revises: 25ca960a207
+Create Date: 2016-01-06 19:03:25.511074
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'db64b766362f'
+down_revision = '25ca960a207'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.add_column('article', sa.Column('notes', sa.String(), nullable=True))
+
+
+def downgrade():
+ op.drop_column('article', 'notes')
bgstack15