Fix impostazione 'Azienda predefinita' con deleted_at
This commit is contained in:
parent
222a387f53
commit
370d9f7e8e
|
@ -427,6 +427,11 @@ UPDATE `zz_views` SET `query` = REPLACE(
|
|||
REPLACE(`query`, 'deleted=0', '`deleted_at` IS NULL')
|
||||
, 'deleted = 0', '`deleted_at` IS NULL')
|
||||
, '`deleted` = 0', '`deleted_at` IS NULL');
|
||||
UPDATE `zz_settings` SET `tipo` = REPLACE(
|
||||
REPLACE(
|
||||
REPLACE(`tipo`, 'deleted=0', '`deleted_at` IS NULL')
|
||||
, 'deleted = 0', '`deleted_at` IS NULL')
|
||||
, '`deleted` = 0', '`deleted_at` IS NULL');
|
||||
|
||||
UPDATE `zz_widgets` SET `query` = REPLACE(
|
||||
REPLACE(
|
||||
|
@ -452,6 +457,11 @@ UPDATE `zz_views` SET `query` = REPLACE(
|
|||
REPLACE(`query`, 'deleted=1', '`deleted_at` IS NOT NULL')
|
||||
, 'deleted = 1', '`deleted_at` IS NOT NULL')
|
||||
, '`deleted` = 1', '`deleted_at` IS NOT NULL');
|
||||
UPDATE `zz_settings` SET `tipo` = REPLACE(
|
||||
REPLACE(
|
||||
REPLACE(`tipo`, 'deleted=1', '`deleted_at` IS NOT NULL')
|
||||
, 'deleted = 1', '`deleted_at` IS NOT NULL')
|
||||
, '`deleted` = 1', '`deleted_at` IS NOT NULL');
|
||||
|
||||
-- Fix id delle Banche
|
||||
UPDATE `zz_views` SET `enabled` = 0 WHERE `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Banche') AND `name` = 'id';
|
||||
|
|
Loading…
Reference in New Issue