diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-01-06 21:54:31 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-01-06 21:54:31 +0100 |
commit | e4042c4b31267670e52a7d3f8154d9aaf5651ffa (patch) | |
tree | b9b40806270c0482060ff4ec383478960e03013b /src/migrations/versions/db64b766362f_add_notes_column_for_articles.py | |
parent | Minor edit to the /feed page (template). (diff) | |
download | newspipe-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/db64b766362f_add_notes_column_for_articles.py')
-rw-r--r-- | src/migrations/versions/db64b766362f_add_notes_column_for_articles.py | 22 |
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') |