From 02905cc5bd6b186623f04f7d61ecd3319747fa3a Mon Sep 17 00:00:00 2001 From: Layda Salas Date: Fri, 25 Feb 2022 11:42:42 +0100 Subject: [PATCH] IDEMPIERE-1981 Context Help can have multiple messages #resolve (#1200) * IDEMPIERE-1981 Context Help can have multiple messages #resolve * IDEMPIERE-1981 Context Help can have multiple messages #resolve --- .../oracle/202202251053_IDEMPIERE-1981.sql | 27 +++++++++++++++++++ .../202202251053_IDEMPIERE-1981.sql | 24 +++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 migration/iD10/oracle/202202251053_IDEMPIERE-1981.sql create mode 100644 migration/iD10/postgresql/202202251053_IDEMPIERE-1981.sql diff --git a/migration/iD10/oracle/202202251053_IDEMPIERE-1981.sql b/migration/iD10/oracle/202202251053_IDEMPIERE-1981.sql new file mode 100644 index 0000000000..bbd307fcd5 --- /dev/null +++ b/migration/iD10/oracle/202202251053_IDEMPIERE-1981.sql @@ -0,0 +1,27 @@ +-- IDEMPIERE-1981 Context Help can have multiple messages +SELECT register_migration_script('202202251053_IDEMPIERE-1981.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + + +-- Feb 22, 2022, 3:45:06 PM CET +INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Table_ID,IsCreateConstraint,IsUnique,Processing,TableIndexDrop,IsKey) VALUES (0,0,201100,'b9c5eb35-1a02-4bcf-bd03-f0df6ff94899',TO_DATE('2022-02-22 15:45:06','YYYY-MM-DD HH24:MI:SS'),100,'prevent the user from creating more than one message','D','Y','ad_ctxhelpmsg_limit',TO_DATE('2022-02-22 15:45:06','YYYY-MM-DD HH24:MI:SS'),100,200064,'N','Y','N','N','N') +; + +-- Feb 22, 2022, 3:45:54 PM CET +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201450,'a57ecca3-5318-41d6-ab08-9b98d167339f',TO_DATE('2022-02-22 15:45:54','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_DATE('2022-02-22 15:45:54','YYYY-MM-DD HH24:MI:SS'),100,208566,201100,10) +; + +-- Feb 25, 2022, 11:01:17 AM CET +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201451,'37330ac6-3272-431f-a3aa-b2f5934e1630',TO_TIMESTAMP('2022-02-25 11:01:17','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-02-25 11:01:17','YYYY-MM-DD HH24:MI:SS'),100,208551,201100,20) +; + +-- Feb 25, 2022, 11:01:27 AM CET +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201452,'cfe228c7-bdbd-49d9-872a-db355401b47d',TO_TIMESTAMP('2022-02-25 11:01:27','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-02-25 11:01:27','YYYY-MM-DD HH24:MI:SS'),100,208554,201100,30) +; + +-- Feb 25, 2022, 11:01:54 AM CET +CREATE UNIQUE INDEX ad_ctxhelpmsg_limit ON AD_CtxHelpMsg (AD_CtxHelp_ID,AD_Client_ID,AD_Org_ID) +; + diff --git a/migration/iD10/postgresql/202202251053_IDEMPIERE-1981.sql b/migration/iD10/postgresql/202202251053_IDEMPIERE-1981.sql new file mode 100644 index 0000000000..a41166d4b2 --- /dev/null +++ b/migration/iD10/postgresql/202202251053_IDEMPIERE-1981.sql @@ -0,0 +1,24 @@ +-- IDEMPIERE-1981 Context Help can have multiple messages +SELECT register_migration_script('202202251053_IDEMPIERE-1981.sql') FROM dual; + + +-- Feb 22, 2022, 3:45:06 PM CET +INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Table_ID,IsCreateConstraint,IsUnique,Processing,TableIndexDrop,IsKey) VALUES (0,0,201100,'b9c5eb35-1a02-4bcf-bd03-f0df6ff94899',TO_TIMESTAMP('2022-02-22 15:45:06','YYYY-MM-DD HH24:MI:SS'),100,'prevent the user from creating more than one message','D','Y','ad_ctxhelpmsg_limit',TO_TIMESTAMP('2022-02-22 15:45:06','YYYY-MM-DD HH24:MI:SS'),100,200064,'N','Y','N','N','N') +; + +-- Feb 22, 2022, 3:45:54 PM CET +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201450,'a57ecca3-5318-41d6-ab08-9b98d167339f',TO_TIMESTAMP('2022-02-22 15:45:54','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-02-22 15:45:54','YYYY-MM-DD HH24:MI:SS'),100,208566,201100,10) +; + +-- Feb 25, 2022, 11:01:17 AM CET +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201451,'37330ac6-3272-431f-a3aa-b2f5934e1630',TO_TIMESTAMP('2022-02-25 11:01:17','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-02-25 11:01:17','YYYY-MM-DD HH24:MI:SS'),100,208551,201100,20) +; + +-- Feb 25, 2022, 11:01:27 AM CET +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201452,'cfe228c7-bdbd-49d9-872a-db355401b47d',TO_TIMESTAMP('2022-02-25 11:01:27','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-02-25 11:01:27','YYYY-MM-DD HH24:MI:SS'),100,208554,201100,30) +; + +-- Feb 25, 2022, 11:01:54 AM CET +CREATE UNIQUE INDEX ad_ctxhelpmsg_limit ON AD_CtxHelpMsg (AD_CtxHelp_ID,AD_Client_ID,AD_Org_ID) +; +