diff options
Diffstat (limited to 'migrations')
-rw-r--r-- | migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py b/migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py new file mode 100644 index 00000000..6e12964f --- /dev/null +++ b/migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py @@ -0,0 +1,24 @@ +"""add updated_date column to article table + +Revision ID: 7f973d010686 +Revises: 25ca960a207 +Create Date: 2016-02-12 21:51:40.868539 + +""" + +# revision identifiers, used by Alembic. +revision = '7f973d010686' +down_revision = '25ca960a207' +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.add_column('article', sa.Column('updated_date', sa.DateTime(), nullable=True)) + + +def downgrade(): + op.drop_column('article', 'updated_date') |