Created
April 5, 2018 13:32
-
-
Save bubnenkoff/7a7d8076572672a4edd423a6c3194170 to your computer and use it in GitHub Desktop.
Миграция от Антона
This file contains hidden or 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
def upgrade(migrate_engine): | |
# Upgrade operations go here. Don't create your own engine; bind | |
# migrate_engine to your metadata | |
metadata = MetaData(bind=migrate_engine) | |
user = Table('user', metadata, | |
Column('user_id', Integer, primary_key=True), | |
Column('user_name', String(16), nullable=False), | |
Column('email_address', String(60), key='email'), | |
Column('password', String(20), nullable=False) | |
) | |
user.create() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment