SQLAlchemy and Alembic 2 · Engine, models and tables

Create the tables

Create tables for all models. Use migrations for real schema changes.

Base.metadata.create_all(engine)

Official SQLAlchemy and Alembic 2 documentation

More engine, models and tables commands

All engine, models and tables commands · SQLAlchemy and Alembic 2 cheatsheet

Was this page helpful?