]> 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 Development Team <asteriskteam@digium.com>
Thu, 7 Mar 2024 14:18:40 +0000 (14:18 +0000)
commitab1a9fa7d15e63ade3b529304a0ae75fc3016f9b
tree695ae094f356a99180fe137710bda04709772a7d
parent76d33df3666d5c2b6c92b80558452d6de7d0a8a4
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.

(cherry picked from commit a22db8fd60c8b25e2c53279014f91dcd0e29567d)
apps/app_voicemail.c
contrib/ast-db-manage/voicemail/versions/1c55c341360f_remove_macrocontext_field.py [new file with mode: 0644]