From ba1aa6845b9f5a609496977f44f4e49e183fddee Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 13 Feb 2016 11:24:54 +0100 Subject: alembic id --- ...3fc_add_updated_date_column_to_article_table.py | 22 ++++++++++++++++++++++ ...686_add_updated_date_column_to_article_table.py | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py delete mode 100644 migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py (limited to 'migrations') diff --git a/migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py b/migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py new file mode 100644 index 00000000..2c67450c --- /dev/null +++ b/migrations/versions/3f83bfe93fc_add_updated_date_column_to_article_table.py @@ -0,0 +1,22 @@ +"""add updated_date column to article table + +Revision ID: 3f83bfe93fc +Revises: 25ca960a207 +Create Date: 2016-02-12 21:51:40.868539 + +""" + +# revision identifiers, used by Alembic. +revision = '3f83bfe93fc' +down_revision = '25ca960a207' + +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') 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 deleted file mode 100644 index 2c67450c..00000000 --- a/migrations/versions/7f973d010686_add_updated_date_column_to_article_table.py +++ /dev/null @@ -1,22 +0,0 @@ -"""add updated_date column to article table - -Revision ID: 3f83bfe93fc -Revises: 25ca960a207 -Create Date: 2016-02-12 21:51:40.868539 - -""" - -# revision identifiers, used by Alembic. -revision = '3f83bfe93fc' -down_revision = '25ca960a207' - -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') -- cgit