Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bubnenkoff/7a7d8076572672a4edd423a6c3194170 to your computer and use it in GitHub Desktop.
Save bubnenkoff/7a7d8076572672a4edd423a6c3194170 to your computer and use it in GitHub Desktop.
Миграция от Антона
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