mirror of https://github.com/sipwise/db-schema.git
Only some preferences should actually be shown to end customers. To not do this manually in the api/panel, flag it in the db.vseva/pbx_groups
parent
ce2b6f6a92
commit
b9586047e7
@ -0,0 +1,3 @@
|
||||
USE billing;
|
||||
|
||||
ALTER TABLE voip_preferences DROP COLUMN expose_to_customer;
|
||||
@ -0,0 +1,12 @@
|
||||
USE billing;
|
||||
|
||||
ALTER TABLE voip_preferences ADD COLUMN
|
||||
expose_to_customer TINYINT(1) NOT NULL DEFAULT 0 AFTER internal;
|
||||
|
||||
UPDATE voip_preferences SET expose_to_customer=1 WHERE attribute IN (
|
||||
'block_in_clir', 'block_in_list', 'block_in_mode',
|
||||
'block_out_list', 'block_out_mode', 'block_out_override_pin',
|
||||
'clir', 'ncos'
|
||||
);
|
||||
|
||||
UPDATE voip_preferences SET internal=1 WHERE attribute='ringtimeout';
|
||||
Loading…
Reference in new issue