|
@@ -175,13 +175,50 @@ wsgidav.config_path = %(here)s/wsgidav.conf
|
175
|
175
|
use = egg:waitress#main
|
176
|
176
|
listen = localhost:6543
|
177
|
177
|
|
|
178
|
+[alembic]
|
|
179
|
+# path to migration scripts
|
|
180
|
+script_location = tracim/migration
|
|
181
|
+
|
|
182
|
+# template used to generate migration files
|
|
183
|
+# file_template = %%(rev)s_%%(slug)s
|
|
184
|
+
|
|
185
|
+# timezone to use when rendering the date
|
|
186
|
+# within the migration file as well as the filename.
|
|
187
|
+# string value is passed to dateutil.tz.gettz()
|
|
188
|
+# leave blank for localtime
|
|
189
|
+# timezone =
|
|
190
|
+
|
|
191
|
+# max length of characters to apply to the
|
|
192
|
+# "slug" field
|
|
193
|
+#truncate_slug_length = 40
|
|
194
|
+
|
|
195
|
+# set to 'true' to run the environment during
|
|
196
|
+# the 'revision' command, regardless of autogenerate
|
|
197
|
+# revision_environment = false
|
|
198
|
+
|
|
199
|
+# set to 'true' to allow .pyc and .pyo files without
|
|
200
|
+# a source .py file to be detected as revisions in the
|
|
201
|
+# versions/ directory
|
|
202
|
+# sourceless = false
|
|
203
|
+
|
|
204
|
+# version location specification; this defaults
|
|
205
|
+# to migrate/versions. When using multiple version
|
|
206
|
+# directories, initial revisions must be specified with --version-path
|
|
207
|
+# version_locations = %(here)s/bar %(here)s/bat migrate/versions
|
|
208
|
+
|
|
209
|
+# the output encoding used when revision files
|
|
210
|
+# are written from script.py.mako
|
|
211
|
+# output_encoding = utf-8
|
|
212
|
+
|
|
213
|
+sqlalchemy.url = sqlite:///%(here)s/tracim.sqlite
|
|
214
|
+
|
178
|
215
|
###
|
179
|
216
|
# logging configuration
|
180
|
217
|
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
|
181
|
218
|
###
|
182
|
219
|
|
183
|
220
|
[loggers]
|
184
|
|
-keys = root, tracim, sqlalchemy
|
|
221
|
+keys = root, tracim, sqlalchemy, alembic
|
185
|
222
|
|
186
|
223
|
[handlers]
|
187
|
224
|
keys = console
|
|
@@ -206,6 +243,11 @@ qualname = sqlalchemy.engine
|
206
|
243
|
# "level = DEBUG" logs SQL queries and results.
|
207
|
244
|
# "level = WARN" logs neither. (Recommended for production systems.)
|
208
|
245
|
|
|
246
|
+[logger_alembic]
|
|
247
|
+level = INFO
|
|
248
|
+handlers =
|
|
249
|
+qualname = alembic
|
|
250
|
+
|
209
|
251
|
[handler_console]
|
210
|
252
|
class = StreamHandler
|
211
|
253
|
args = (sys.stderr,)
|
|
@@ -214,3 +256,4 @@ formatter = generic
|
214
|
256
|
|
215
|
257
|
[formatter_generic]
|
216
|
258
|
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
|
|
259
|
+datefmt = %H:%M:%S
|