Skip to content

fastack-dev/fastack-migrate

Repository files navigation

fastack-migrate

fastack-migrate is a database migration tool for fastack.

This is a fork of flask-migrate!

Usage

Install plugin:

pip install -U fastack-migrate

Add the plugin to your project configuration:

PLUGINS = [
    "fastack_sqlmodel",
    "fastack_migrate",
    ...
]

And initialize your project with alembic template:

fastack db init

Then check if there are any changes in app.models:

fastack db migrate

Update all changes in app.models:

fastack db upgrade

For more, please visit https://flask-migrate.readthedocs.io/en/latest/