MigrationsΒΆ

We manage migrations with the flask db command.

You can see the current revision.

flask db current

You can see the revision history order.

flask db history

You can run an upgrade.

flask db upgrade

You can back out of an upgrade.

flask db downgrade

To see more about the flask db command, use the help flag.

flask db --help

Note

We already used alembic, when we initialized the database.

flask db upgrade