add index on sip_gateways (inbound,voip_carrier_sid) and trunk_type to predefined carriers (#512)

This commit is contained in:
Dave Horton
2025-11-11 10:48:14 -05:00
committed by GitHub
parent 4f0f8a0f46
commit 4c86adf1f7
3 changed files with 50 additions and 20 deletions
+2
View File
@@ -233,6 +233,8 @@ const sql = {
'UPDATE applications SET speech_synthesis_voice = \'en-US-Standard-C\' WHERE speech_synthesis_voice IS NULL AND speech_synthesis_vendor = \'google\' AND speech_synthesis_language = \'en-US\'',
'ALTER TABLE applications MODIFY COLUMN speech_synthesis_voice VARCHAR(255) DEFAULT \'en-US-Standard-C\'',
'ALTER TABLE voip_carriers ADD COLUMN trunk_type ENUM(\'static_ip\',\'auth\',\'reg\') NOT NULL DEFAULT \'static_ip\'',
'ALTER TABLE predefined_carriers ADD COLUMN trunk_type ENUM(\'static_ip\',\'auth\',\'reg\') NOT NULL DEFAULT \'static_ip\'',
'CREATE INDEX idx_sip_gateways_inbound_carrier ON sip_gateways (inbound,voip_carrier_sid)',
]
};