From e4042c4b31267670e52a7d3f8154d9aaf5651ffa Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 6 Jan 2016 21:54:31 +0100 Subject: it seemms that alembic do not find the models --- .../db64b766362f_add_notes_column_for_articles.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/migrations/versions/db64b766362f_add_notes_column_for_articles.py (limited to 'src/migrations/versions') 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') -- cgit