diff --git a/db_scripts/diff/9256.down b/db_scripts/diff/9256.down new file mode 100644 index 00000000..20a6bbb6 --- /dev/null +++ b/db_scripts/diff/9256.down @@ -0,0 +1,5 @@ +USE provisioning; + +SELECT id FROM voip_preferences WHERE attribute='outbound_socket' INTO @obs_pref_id; +DELETE FROM voip_preferences_enum WHERE preference_id = @obs_pref_id; +DELETE FROM voip_preferences WHERE id = @obs_pref_id; diff --git a/db_scripts/diff/9256.up b/db_scripts/diff/9256.up new file mode 100644 index 00000000..b988e1e0 --- /dev/null +++ b/db_scripts/diff/9256.up @@ -0,0 +1,5 @@ +USE provisioning; + +INSERT INTO voip_preferences VALUES(NULL, 'outbound_socket', 0, 1, 1, 1, 1, now(), 0, 'enum', 0, 'Outbound socket to be used for SIP communication to this entity'); +SELECT last_insert_id() INTO @obs_pref_id; +INSERT INTO voip_preferences_enum VALUES(NULL, @obs_pref_id, 'default', NULL, 1, 1, 1, 1);