From db3354474f3a20427449def624084b43c951e94c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 10 Jan 2015 17:30:18 -0500 Subject: [PATCH] IDEMPIERE-1413 User Substitute list must show just tenant users --- .../oracle/201501101729_IDEMPIERE-1413.sql | 27 +++++++++++++++++++ .../201501101729_IDEMPIERE-1413.sql | 24 +++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 migration/i2.1/oracle/201501101729_IDEMPIERE-1413.sql create mode 100644 migration/i2.1/postgresql/201501101729_IDEMPIERE-1413.sql diff --git a/migration/i2.1/oracle/201501101729_IDEMPIERE-1413.sql b/migration/i2.1/oracle/201501101729_IDEMPIERE-1413.sql new file mode 100644 index 0000000000..30dc90d17a --- /dev/null +++ b/migration/i2.1/oracle/201501101729_IDEMPIERE-1413.sql @@ -0,0 +1,27 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Jan 10, 2015 5:23:47 PM COT +-- IDEMPIERE-1413 User Substitute list must show just tenant users +UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2015-01-10 17:23:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=573 +; + +-- Jan 10, 2015 5:25:45 PM COT +UPDATE AD_Column SET AD_Val_Rule_ID=200052,Updated=TO_DATE('2015-01-10 17:25:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10412 +; + +-- Jan 10, 2015 5:28:21 PM COT +UPDATE AD_Val_Rule SET Name='AD_User with role on Client',Updated=TO_DATE('2015-01-10 17:28:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200052 +; + +-- Jan 10, 2015 5:28:50 PM COT +INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200066,'AD_User of Client with role on Client','S','AD_User.AD_Client_ID=@#AD_Client_ID@ AND AD_User.AD_User_ID IN (SELECT AD_User_ID FROM AD_User_Roles WHERE IsActive=''Y'' AND AD_User_Roles.AD_Client_ID=@#AD_Client_ID@)',0,0,'Y',TO_DATE('2015-01-10 17:28:50','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-10 17:28:50','YYYY-MM-DD HH24:MI:SS'),100,'D','24b4843c-bd1c-41ae-958b-0e6a86d7ff47') +; + +-- Jan 10, 2015 5:28:59 PM COT +UPDATE AD_Column SET AD_Val_Rule_ID=200066,Updated=TO_DATE('2015-01-10 17:28:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10412 +; + +SELECT register_migration_script('201501101729_IDEMPIERE-1413.sql') FROM dual +; + diff --git a/migration/i2.1/postgresql/201501101729_IDEMPIERE-1413.sql b/migration/i2.1/postgresql/201501101729_IDEMPIERE-1413.sql new file mode 100644 index 0000000000..5be2e1bf19 --- /dev/null +++ b/migration/i2.1/postgresql/201501101729_IDEMPIERE-1413.sql @@ -0,0 +1,24 @@ +-- Jan 10, 2015 5:23:47 PM COT +-- IDEMPIERE-1413 User Substitute list must show just tenant users +UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2015-01-10 17:23:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=573 +; + +-- Jan 10, 2015 5:25:45 PM COT +UPDATE AD_Column SET AD_Val_Rule_ID=200052,Updated=TO_TIMESTAMP('2015-01-10 17:25:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10412 +; + +-- Jan 10, 2015 5:28:21 PM COT +UPDATE AD_Val_Rule SET Name='AD_User with role on Client',Updated=TO_TIMESTAMP('2015-01-10 17:28:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200052 +; + +-- Jan 10, 2015 5:28:50 PM COT +INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200066,'AD_User of Client with role on Client','S','AD_User.AD_Client_ID=@#AD_Client_ID@ AND AD_User.AD_User_ID IN (SELECT AD_User_ID FROM AD_User_Roles WHERE IsActive=''Y'' AND AD_User_Roles.AD_Client_ID=@#AD_Client_ID@)',0,0,'Y',TO_TIMESTAMP('2015-01-10 17:28:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-10 17:28:50','YYYY-MM-DD HH24:MI:SS'),100,'D','24b4843c-bd1c-41ae-958b-0e6a86d7ff47') +; + +-- Jan 10, 2015 5:28:59 PM COT +UPDATE AD_Column SET AD_Val_Rule_ID=200066,Updated=TO_TIMESTAMP('2015-01-10 17:28:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10412 +; + +SELECT register_migration_script('201501101729_IDEMPIERE-1413.sql') FROM dual +; +