IDEMPIERE-1411 Delete unused roles / fix migration script

This commit is contained in:
Carlos Ruiz 2013-10-02 12:15:07 -05:00
parent 72dd247c3f
commit e4def14426
2 changed files with 34 additions and 11 deletions

View File

@ -1,14 +1,24 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- Sep 30, 2013 9:31:17 PM COT -- Sep 30, 2013 9:31:17 PM COT
-- IDEMPIERE-1411 Delete unused roles -- IDEMPIERE-1411 Delete unused roles
DELETE FROM AD_Role WHERE AD_Role_ID=50002 DELETE FROM AD_Window_Access WHERE AD_Role_ID IN (50001,50002)
; ;
-- Sep 30, 2013 9:31:32 PM COT DELETE FROM AD_Process_Access WHERE AD_Role_ID IN (50001,50002)
-- IDEMPIERE-1411 Delete unused roles ;
DELETE FROM AD_Role WHERE AD_Role_ID=50001
DELETE FROM AD_Form_Access WHERE AD_Role_ID IN (50001,50002)
;
DELETE FROM AD_WorkFlow_Access WHERE AD_Role_ID IN (50001,50002)
;
DELETE FROM AD_Document_Action_Access WHERE AD_Role_ID IN (50001,50002)
;
DELETE FROM AD_InfoWindow_Access WHERE AD_Role_ID IN (50001,50002)
;
DELETE FROM AD_Role WHERE AD_Role_ID IN (50001,50002)
; ;
SELECT register_migration_script('201309302132_IDEMPIERE-1411.sql') FROM dual SELECT register_migration_script('201309302132_IDEMPIERE-1411.sql') FROM dual

View File

@ -1,11 +1,24 @@
-- Sep 30, 2013 9:31:17 PM COT -- Sep 30, 2013 9:31:17 PM COT
-- IDEMPIERE-1411 Delete unused roles -- IDEMPIERE-1411 Delete unused roles
DELETE FROM AD_Role WHERE AD_Role_ID=50002 DELETE FROM AD_Window_Access WHERE AD_Role_ID IN (50001,50002)
; ;
-- Sep 30, 2013 9:31:32 PM COT DELETE FROM AD_Process_Access WHERE AD_Role_ID IN (50001,50002)
-- IDEMPIERE-1411 Delete unused roles ;
DELETE FROM AD_Role WHERE AD_Role_ID=50001
DELETE FROM AD_Form_Access WHERE AD_Role_ID IN (50001,50002)
;
DELETE FROM AD_WorkFlow_Access WHERE AD_Role_ID IN (50001,50002)
;
DELETE FROM AD_Document_Action_Access WHERE AD_Role_ID IN (50001,50002)
;
DELETE FROM AD_InfoWindow_Access WHERE AD_Role_ID IN (50001,50002)
;
DELETE FROM AD_Role WHERE AD_Role_ID IN (50001,50002)
; ;
SELECT register_migration_script('201309302132_IDEMPIERE-1411.sql') FROM dual SELECT register_migration_script('201309302132_IDEMPIERE-1411.sql') FROM dual