You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15005.down

17 lines
451 B

USE billing;
SET AUTOCOMMIT=0;
SELECT id INTO @sip_id FROM billing_mappings WHERE class = 'sipaccount';
UPDATE billing_mappings SET product_id = NULL WHERE product_id = @sip_id;
SELECT id INTO @pbx_id FROM billing_mappings WHERE class = 'pbxaccount';
UPDATE billing_mappings SET product_id = NULL WHERE product_id = @pbx_id;
DELETE FROM products WHERE class IN ('sipaccount', 'pbxaccount');
USE provisioning;
DROP TABLE voip_pbx_groups;
COMMIT;