Skip to content

Instantly share code, notes, and snippets.

@mtreacy002
Created March 28, 2021 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtreacy002/1aa0dc215e91f9a8cc34ce410764f8cf to your computer and use it in GitHub Desktop.
Save mtreacy002/1aa0dc215e91f9a8cc34ce410764f8cf to your computer and use it in GitHub Desktop.
Alembic file for flask-migration with BIT multiple schema scenario
# A generic, single database configuration.
[alembic]
# template used to generate migration files
# file_template = %%(rev)s_%%(slug)s
# set to 'true' to run the environment during
# the 'revision' command, regardless of autogenerate
# revision_environment = false
# Logging configuration
[loggers]
keys = root,sqlalchemy,alembic
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
qualname =
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
[logger_alembic]
level = INFO
handlers =
qualname = alembic
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S
schema_names = public,bitschema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment