From 0b9ace01d85432f6c125d56c2e877cc5d2dcaabd Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 18 Jun 2014 16:33:01 +0200 Subject: [PATCH] MT#7471 Fix foreign key constraint. --- db_scripts/diff/15066.up | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db_scripts/diff/15066.up b/db_scripts/diff/15066.up index 19b2f57a..6ee0ed7b 100644 --- a/db_scripts/diff/15066.up +++ b/db_scripts/diff/15066.up @@ -57,11 +57,13 @@ DELIMITER ;; END */;; DELIMITER ; +SELECT id INTO @vpg_id FROM voip_preference_groups + WHERE name='Call Blockings'; INSERT INTO voip_preferences (voip_preference_groups_id, attribute, label, type, max_occur, usr_pref, dom_pref, peer_pref, contract_pref, modify_timestamp, internal, expose_to_customer, data_type, read_only, description) VALUES - (2, 'clir_intrapbx', 'Hide own number for calls within own PBX', 1, 1, 1, 0, 0, 0, now(), 0, 1, 'boolean', 0, '"Calling line identification restriction" - if set to true, the CLI is not displayed on outgoing calls to other users within the same PBX.'); + (@vpg_id, 'clir_intrapbx', 'Hide own number for calls within own PBX', 1, 1, 1, 0, 0, 0, now(), 0, 1, 'boolean', 0, '"Calling line identification restriction" - if set to true, the CLI is not displayed on outgoing calls to other users within the same PBX.'); COMMIT;