Configuration for Alembic and its migrations uses the following Flask config keys.


A dictionary containing general configuration, mostly used by Config and ScriptDirectory. See Alembic’s docs on config.


A dictionary containing options passed to MigrationContext by EnvironmentContext.configure. See Alembic’s docs on runtime.

ALEMBIC["script_location"] is the location of the migrations directory. If it is not an absolute path, it will be relative to the application root. It defaults to migrations relative to the application root.