Configuration¶
Configuration for Alembic and its migrations uses the following Flask config keys.
- flask_alembic.config.ALEMBIC¶
A dictionary containing general configuration, mostly used by
Config
andScriptDirectory
. See Alembic’s docs on config.
- flask_alembic.config.ALEMBIC_CONTEXT¶
A dictionary containing options passed to
MigrationContext
byEnvironmentContext.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.
ALEMBIC_CONTEXt["compare_type"]
defaults to True
in Alembic.
ALEMBIC_CONTEXT["compare_server_default"]
defaults to True
, it would
otherwise default to False
in Alembic.