Alembic is a lightweight database migration tool for usage with the SQLAlchemy Database Toolkit for Python.
Alembic is a lightweight database migration tool for usage with the SQLAlchemy Database Toolkit for Python.
Some of the important operations that can be performed with alembic are
- Upgrade(Perform Database migrations, Example: create/alter/modify)
- Downgrade(Its the reverse operation of upgrade to undo the upgrade changes)
- Current(Show the current revision and state of migration in the database)
- Init(Initialize a new scripts directory)
- Revision(Create a new revision file)