Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 447 Bytes

File metadata and controls

19 lines (13 loc) · 447 Bytes

Database migration process with Alembic

Alembic is a database migration tool for SQLAlchemy.

revision (migration)

you can use the following command to create a new migration file.

alembic revision --autogenerate -m "initial project"

this will create a new migration file in the alembic/versions directory.

upgrade (migrate)

you can use the following command to migrate the database.

alembic upgrade head