aboutsummaryrefslogtreecommitdiff
path: root/migrations/alembic.ini
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-08-19 12:28:53 -0400
committerGalen Guyer <galen@galenguyer.com>2021-08-19 12:28:53 -0400
commit9dda1c9ed4e7e039ac894179b2d06c5e6c68180f (patch)
tree913af0ebf64da9c8f53f7a9336a4af5221f01306 /migrations/alembic.ini
parent3a4c566701e552a61cbc2462b4b0d69439b720e1 (diff)
add flask db migrations
Diffstat (limited to 'migrations/alembic.ini')
-rw-r--r--migrations/alembic.ini50
1 files changed, 50 insertions, 0 deletions
diff --git a/migrations/alembic.ini b/migrations/alembic.ini
new file mode 100644
index 0000000..ec9d45c
--- /dev/null
+++ b/migrations/alembic.ini
@@ -0,0 +1,50 @@
+# 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,flask_migrate
+
+[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
+
+[logger_flask_migrate]
+level = INFO
+handlers =
+qualname = flask_migrate
+
+[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