aboutsummaryrefslogtreecommitdiff
path: root/budget/migrations/alembic.ini
diff options
context:
space:
mode:
authorJocelyn Delande <jocelyn@crapouillou.net>2016-05-21 23:47:12 +0200
committerJocelyn Delande <jocelyn@crapouillou.net>2016-05-31 12:10:53 +0200
commit74995f99595d30b6b3383d3761cbd730b3cb7798 (patch)
treef386dd81ea074bb8a067c362d3df90aab4aed944 /budget/migrations/alembic.ini
parent698efd7681d3d9fa6f621046a4dc95e0edc36a55 (diff)
downloadihatemoney-mirror-74995f99595d30b6b3383d3761cbd730b3cb7798.zip
ihatemoney-mirror-74995f99595d30b6b3383d3761cbd730b3cb7798.tar.gz
ihatemoney-mirror-74995f99595d30b6b3383d3761cbd730b3cb7798.tar.bz2
Handle migrations through alembic/flask-Migrations
Auto-initialization now applies migrations instead of using db. create_all() fix #83
Diffstat (limited to 'budget/migrations/alembic.ini')
-rw-r--r--budget/migrations/alembic.ini45
1 files changed, 45 insertions, 0 deletions
diff --git a/budget/migrations/alembic.ini b/budget/migrations/alembic.ini
new file mode 100644
index 0000000..f8ed480
--- /dev/null
+++ b/budget/migrations/alembic.ini
@@ -0,0 +1,45 @@
+# 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