Logo
Explore Help
Sign In
kenmirrors/asterisk
1
0
Fork 0
You've already forked asterisk
mirror of https://github.com/asterisk/asterisk.git synced 2025-10-04 12:12:48 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
18206add1c2d9bd9f7799319fe8cf737d92849ed
asterisk/contrib/ast-db-manage/voicemail/versions/1c55c341360f_remove_macrocontext_field.py

23 lines
445 B
Python
Raw Normal View History

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)
2024-01-10 09:47:24 -07:00
"""Remove macrocontext field
Revision ID: 1c55c341360f
Revises: 39428242f7f5
Create Date: 2024-01-09 15:01:39.698918
"""
# revision identifiers, used by Alembic.
revision = '1c55c341360f'
down_revision = '39428242f7f5'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.drop_column('voicemail_messages', 'macrocontext')
def downgrade():
op.add_column('voicemail_messages', sa.Column('macrocontext', sa.String(80)))
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 108ms Template repo/view: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API