From b35e9773198ef2d8b37c4ca223f08147db47de0b Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Sat, 12 Dec 2015 21:14:28 +0100 Subject: moving the root of source code from / to /src/ --- .../versions/48f561c0ce6_add_column_entry_id.py | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/migrations/versions/48f561c0ce6_add_column_entry_id.py (limited to 'src/migrations/versions/48f561c0ce6_add_column_entry_id.py') diff --git a/src/migrations/versions/48f561c0ce6_add_column_entry_id.py b/src/migrations/versions/48f561c0ce6_add_column_entry_id.py new file mode 100644 index 00000000..f464849a --- /dev/null +++ b/src/migrations/versions/48f561c0ce6_add_column_entry_id.py @@ -0,0 +1,26 @@ +"""add column entry_id + +Revision ID: 48f561c0ce6 +Revises: +Create Date: 2015-02-18 21:17:19.346998 + +""" + +# revision identifiers, used by Alembic. +revision = '48f561c0ce6' +down_revision = None +branch_labels = None +depends_on = None + +import conf +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.add_column('article', sa.Column('entry_id', sa.String(), nullable=True)) + + +def downgrade(): + if 'sqlite' not in conf.SQLALCHEMY_DATABASE_URI: + op.drop_column('article', 'entry_id') -- cgit