From 52b19fa452b56a6a7485a477661ca09ff24c13e2 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 19 May 2020 12:01:50 +0200 Subject: [PATCH] IDEMPIERE-4297 Improve test data. Not Advanced Role (#68) --- ...5191128_IDEMPIERE-4297_NotAdvancedRole.sql | 23 +++++++++++++++++++ ...5191128_IDEMPIERE-4297_NotAdvancedRole.sql | 20 ++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 migration/i7.1z/oracle/202005191128_IDEMPIERE-4297_NotAdvancedRole.sql create mode 100644 migration/i7.1z/postgresql/202005191128_IDEMPIERE-4297_NotAdvancedRole.sql diff --git a/migration/i7.1z/oracle/202005191128_IDEMPIERE-4297_NotAdvancedRole.sql b/migration/i7.1z/oracle/202005191128_IDEMPIERE-4297_NotAdvancedRole.sql new file mode 100644 index 0000000000..86980eae35 --- /dev/null +++ b/migration/i7.1z/oracle/202005191128_IDEMPIERE-4297_NotAdvancedRole.sql @@ -0,0 +1,23 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-4297 Improve test data - not advanced role +-- May 19, 2020, 11:25:16 AM CEST +INSERT INTO AD_Role (AD_Role_ID,Name,Description,UserLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_Currency_ID,AmtApproval,IsManual,IsPersonalAccess,IsShowAcct,IsPersonalLock,IsCanReport,IsCanExport,IsCanApproveOwnDoc,IsAccessAllOrgs,IsChangeLog,PreferenceType,OverwritePriceLimit,IsUseUserOrgAccess,ConfirmQueryRecords,MaxQueryRecords,Allow_Info_Account,Allow_Info_Asset,Allow_Info_BPartner,Allow_Info_InOut,Allow_Info_Invoice,Allow_Info_Order,Allow_Info_Payment,Allow_Info_Product,Allow_Info_Resource,Allow_Info_Schedule,AD_Role_UU,IsMenuAutoExpand,IsMasterRole,IsAccessAdvanced) VALUES (200001,'GardenWorld Admin Not Advanced','GardenWorld Admin Not Advanced',' CO',11,0,'Y',TO_DATE('2020-05-19 11:25:15','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-05-19 11:25:15','YYYY-MM-DD HH24:MI:SS'),100,100,500,'N','N','Y','N','Y','Y','Y','Y','N','C','N','N',0,0,'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','59cf270b-d74a-4cea-a8f7-ff2fd838a8f9','N','N','Y') +; + +-- May 19, 2020, 11:25:16 AM CEST +INSERT INTO AD_User_Roles (AD_Role_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_User_ID,AD_Client_ID,AD_Org_ID,AD_User_Roles_UU) VALUES (200001,'Y',TO_DATE('2020-05-19 11:25:16','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-05-19 11:25:16','YYYY-MM-DD HH24:MI:SS'),100,100,11,0,'f0638aee-6960-4d5e-ae10-947fb24ca5a3') +; + +-- May 19, 2020, 11:25:29 AM CEST +INSERT INTO AD_User_Roles (AD_Role_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_User_ID,AD_Client_ID,AD_Org_ID,AD_User_Roles_UU) VALUES (200001,'Y',TO_DATE('2020-05-19 11:25:29','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-05-19 11:25:29','YYYY-MM-DD HH24:MI:SS'),100,101,11,0,'3708c068-968b-44dc-9398-d2a2ce659c2f') +; + +-- May 19, 2020, 11:26:32 AM CEST +UPDATE AD_Role SET IsPersonalLock='Y', OverwritePriceLimit='Y',Updated=TO_DATE('2020-05-19 11:26:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=102 +; + +SELECT register_migration_script('202005191128_IDEMPIERE-4297_NotAdvancedRole.sql') FROM dual +; + diff --git a/migration/i7.1z/postgresql/202005191128_IDEMPIERE-4297_NotAdvancedRole.sql b/migration/i7.1z/postgresql/202005191128_IDEMPIERE-4297_NotAdvancedRole.sql new file mode 100644 index 0000000000..27033a7061 --- /dev/null +++ b/migration/i7.1z/postgresql/202005191128_IDEMPIERE-4297_NotAdvancedRole.sql @@ -0,0 +1,20 @@ +-- IDEMPIERE-4297 Improve test data - not advanced role +-- May 19, 2020, 11:25:16 AM CEST +INSERT INTO AD_Role (AD_Role_ID,Name,Description,UserLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_Currency_ID,AmtApproval,IsManual,IsPersonalAccess,IsShowAcct,IsPersonalLock,IsCanReport,IsCanExport,IsCanApproveOwnDoc,IsAccessAllOrgs,IsChangeLog,PreferenceType,OverwritePriceLimit,IsUseUserOrgAccess,ConfirmQueryRecords,MaxQueryRecords,Allow_Info_Account,Allow_Info_Asset,Allow_Info_BPartner,Allow_Info_InOut,Allow_Info_Invoice,Allow_Info_Order,Allow_Info_Payment,Allow_Info_Product,Allow_Info_Resource,Allow_Info_Schedule,AD_Role_UU,IsMenuAutoExpand,IsMasterRole,IsAccessAdvanced) VALUES (200001,'GardenWorld Admin Not Advanced','GardenWorld Admin Not Advanced',' CO',11,0,'Y',TO_TIMESTAMP('2020-05-19 11:25:15','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-05-19 11:25:15','YYYY-MM-DD HH24:MI:SS'),100,100,500,'N','N','Y','N','Y','Y','Y','Y','N','C','N','N',0,0,'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','59cf270b-d74a-4cea-a8f7-ff2fd838a8f9','N','N','Y') +; + +-- May 19, 2020, 11:25:16 AM CEST +INSERT INTO AD_User_Roles (AD_Role_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_User_ID,AD_Client_ID,AD_Org_ID,AD_User_Roles_UU) VALUES (200001,'Y',TO_TIMESTAMP('2020-05-19 11:25:16','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-05-19 11:25:16','YYYY-MM-DD HH24:MI:SS'),100,100,11,0,'f0638aee-6960-4d5e-ae10-947fb24ca5a3') +; + +-- May 19, 2020, 11:25:29 AM CEST +INSERT INTO AD_User_Roles (AD_Role_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_User_ID,AD_Client_ID,AD_Org_ID,AD_User_Roles_UU) VALUES (200001,'Y',TO_TIMESTAMP('2020-05-19 11:25:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-05-19 11:25:29','YYYY-MM-DD HH24:MI:SS'),100,101,11,0,'3708c068-968b-44dc-9398-d2a2ce659c2f') +; + +-- May 19, 2020, 11:26:32 AM CEST +UPDATE AD_Role SET IsPersonalLock='Y', OverwritePriceLimit='Y',Updated=TO_TIMESTAMP('2020-05-19 11:26:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=102 +; + +SELECT register_migration_script('202005191128_IDEMPIERE-4297_NotAdvancedRole.sql') FROM dual +; +