Clean code

This commit is contained in:
Laurent Destailleur 2018-04-07 21:11:58 +02:00
parent d7d9c8c338
commit 419b225120
2 changed files with 10 additions and 7 deletions

View File

@ -49,6 +49,9 @@ ALTER TABLE llx_inventory ADD COLUMN import_key varchar(14);
-- For 8.0 -- For 8.0
-- delete old permission no more used
DELETE FROM llx_rights_def WHERE perms = 'main' and module = 'commercial';
delete from llx_rights_def where perms IS NULL; delete from llx_rights_def where perms IS NULL;
delete from llx_user_rights where fk_user not IN (select rowid from llx_user); delete from llx_user_rights where fk_user not IN (select rowid from llx_user);
delete from llx_usergroup_rights where fk_usergroup not in (select rowid from llx_usergroup); delete from llx_usergroup_rights where fk_usergroup not in (select rowid from llx_usergroup);