diff --git a/db_scripts/diff/15381.up b/db_scripts/diff/15381.up new file mode 100644 index 00000000..bcdd7c95 --- /dev/null +++ b/db_scripts/diff/15381.up @@ -0,0 +1,4 @@ +use provisioning; + +delete v from voip_usr_preferences v join voip_preferences a on v.attribute_id = a.id + where a.attribute="lock" and (v.value is null or v.value="0" or length(trim(v.value)) = 0);