diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-03-05 18:51:37 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-03-05 18:51:37 +0000 |
commit | 15140883d0b9312e0c298d1f4a76ed3aa84fd6b5 (patch) | |
tree | 8a18d484bb065b49bd3e176ab1a62c223214f95d /contrib/ast-db-manage/cdr/script.py.mako | |
parent | ad39358e197632cf0f0638046cd446bbb993fac6 (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/script.py.mako')
-rw-r--r-- | contrib/ast-db-manage/cdr/script.py.mako | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/ast-db-manage/cdr/script.py.mako b/contrib/ast-db-manage/cdr/script.py.mako new file mode 100644 index 000000000..95702017e --- /dev/null +++ b/contrib/ast-db-manage/cdr/script.py.mako @@ -0,0 +1,22 @@ +"""${message} + +Revision ID: ${up_revision} +Revises: ${down_revision} +Create Date: ${create_date} + +""" + +# revision identifiers, used by Alembic. +revision = ${repr(up_revision)} +down_revision = ${repr(down_revision)} + +from alembic import op +import sqlalchemy as sa +${imports if imports else ""} + +def upgrade(): + ${upgrades if upgrades else "pass"} + + +def downgrade(): + ${downgrades if downgrades else "pass"} |