IDEMPIERE-3358 Fix the index for ASP_ClientLevel - add the fix also in a new migration script in case the previous was already applied

This commit is contained in:
Carlos Ruiz 2017-05-12 15:37:10 +02:00
parent 2e74a9b7de
commit c5aca27ae1
4 changed files with 22 additions and 2 deletions

View File

@ -139,7 +139,7 @@ INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexCol
; ;
-- Apr 29, 2017 7:31:24 PM CEST -- Apr 29, 2017 7:31:24 PM CEST
CREATE UNIQUE INDEX asp_clientlevel_unq ON ASP_ClientLevel (AD_Client_ID,ASP_Module_ID) CREATE UNIQUE INDEX asp_clientlevel_unq ON ASP_ClientLevel (AD_Client_ID,ASP_Level_ID)
; ;
-- Apr 29, 2017 7:33:18 PM CEST -- Apr 29, 2017 7:33:18 PM CEST

View File

@ -0,0 +1,10 @@
-- IDEMPIERE-3358 Dictionary fixes - ASP Indexes
DROP INDEX asp_clientlevel_unq
;
CREATE UNIQUE INDEX asp_clientlevel_unq ON ASP_ClientLevel (AD_Client_ID,ASP_Level_ID)
;
SELECT register_migration_script('201705121535_IDEMPIERE-3358_ASP_indexes.sql') FROM dual
;

View File

@ -136,7 +136,7 @@ INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexCol
; ;
-- Apr 29, 2017 7:31:24 PM CEST -- Apr 29, 2017 7:31:24 PM CEST
CREATE UNIQUE INDEX asp_clientlevel_unq ON ASP_ClientLevel (AD_Client_ID,ASP_Module_ID) CREATE UNIQUE INDEX asp_clientlevel_unq ON ASP_ClientLevel (AD_Client_ID,ASP_Level_ID)
; ;
-- Apr 29, 2017 7:33:18 PM CEST -- Apr 29, 2017 7:33:18 PM CEST

View File

@ -0,0 +1,10 @@
-- IDEMPIERE-3358 Dictionary fixes - ASP Indexes
DROP INDEX asp_clientlevel_unq
;
CREATE UNIQUE INDEX asp_clientlevel_unq ON ASP_ClientLevel (AD_Client_ID,ASP_Level_ID)
;
SELECT register_migration_script('201705121535_IDEMPIERE-3358_ASP_indexes.sql') FROM dual
;