summaryrefslogtreecommitdiff
path: root/contrib/ast-db-manage/cdr.ini.sample
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-03-05 18:51:37 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-03-05 18:51:37 +0000
commit15140883d0b9312e0c298d1f4a76ed3aa84fd6b5 (patch)
tree8a18d484bb065b49bd3e176ab1a62c223214f95d /contrib/ast-db-manage/cdr.ini.sample
parentad39358e197632cf0f0638046cd446bbb993fac6 (diff)
alembic: Add missing queue and CDR table creation scripts.
* Added the queues and queue_members tables to the config alembic scripts. * Added the CDR table alembic creation script. The CDR table is more of an example for new setups since the actual table can be fully customized in cdr_adaptive_odbc.conf. (closes issue ASTERISK-23233) Reported by: jmls Review: https://reviewboard.asterisk.org/r/3227/ ........ Merged revisions 409885 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@409889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib/ast-db-manage/cdr.ini.sample')
-rw-r--r--contrib/ast-db-manage/cdr.ini.sample54
1 files changed, 54 insertions, 0 deletions
diff --git a/contrib/ast-db-manage/cdr.ini.sample b/contrib/ast-db-manage/cdr.ini.sample
new file mode 100644
index 000000000..f8047b496
--- /dev/null
+++ b/contrib/ast-db-manage/cdr.ini.sample
@@ -0,0 +1,54 @@
+# A generic, single database configuration.
+
+[alembic]
+# path to migration scripts
+script_location = cdr
+
+# template used to generate migration files
+# file_template = %%(rev)s_%%(slug)s
+
+# max length of characters to apply to the
+# "slug" field
+#truncate_slug_length = 40
+
+# set to 'true' to run the environment during
+# the 'revision' command, regardless of autogenerate
+# revision_environment = false
+
+sqlalchemy.url = mysql://user:pass@localhost/voicemail
+
+
+# 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