Created
February 16, 2017 01:20
-
-
Save avelino/ad69ee054fd1b317bc09e3b6297f03a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
$ alembic revision -m "Add a column" | |
""" | |
revision = 'ae1027a6acf' | |
down_revision = '1975ea83b712' | |
from alembic import op | |
import sqlalchemy as sa | |
def upgrade(): | |
op.add_column('account', sa.Column('last_transaction_date', sa.DateTime)) | |
def downgrade(): | |
op.drop_column('account', 'last_transaction_date') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment