aboutsummaryrefslogtreecommitdiff
path: root/src/migrations/versions
diff options
context:
space:
mode:
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