]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail_odbc: remove macrocontext from voicemail_messages table
authorMike Bradeen <mbradeen@sangoma.com>
Wed, 10 Jan 2024 16:47:24 +0000 (09:47 -0700)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Wed, 17 Jan 2024 15:01:38 +0000 (15:01 +0000)
commit0668e5494a05b87b811033c139a58dfbc4a4c200
treee2c81ee0a2aba88ba3c002d9b27a01c2d2c9030f
parenta3be6a455f91a537bc359d394eea14a7d46c69d2
app_voicemail_odbc: remove macrocontext from voicemail_messages table

When app_macro was deprecated, the macrocontext column was removed from
the INSERT statement but the binds were not renumbered. This broke the
insert.

This change removes the macrocontext column via alembic and re-numbers
the existing columns in the INSERT.

Fixes: #527
UserNote: The fix requires removing the macrocontext column from the
voicemail_messages table in the voicemail database via alembic upgrade.

UpgradeNote: The fix requires that the voicemail database be upgraded via
alembic. Upgrading to the latest voicemail database via alembic will
remove the macrocontext column from the voicemail_messages table.
apps/app_voicemail.c
contrib/ast-db-manage/voicemail/versions/1c55c341360f_remove_macrocontext_field.py [new file with mode: 0644]