From 99c8d11f9612247a1a357895835d384de1280868 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 12 Aug 2020 11:25:38 +0200 Subject: [PATCH] IDEMPIERE-4407 Reset Accounting showing Views in the table list (#213) --- migration/i7.1/oracle/202008121104_IDEMPIERE-4407.sql | 11 +++++++++++ .../i7.1/postgresql/202008121104_IDEMPIERE-4407.sql | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 migration/i7.1/oracle/202008121104_IDEMPIERE-4407.sql create mode 100644 migration/i7.1/postgresql/202008121104_IDEMPIERE-4407.sql diff --git a/migration/i7.1/oracle/202008121104_IDEMPIERE-4407.sql b/migration/i7.1/oracle/202008121104_IDEMPIERE-4407.sql new file mode 100644 index 0000000000..9e24dd4168 --- /dev/null +++ b/migration/i7.1/oracle/202008121104_IDEMPIERE-4407.sql @@ -0,0 +1,11 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-4407 Reset Accounting showing Views in the table list +-- Aug 12, 2020, 4:00:06 AM COT +UPDATE AD_Ref_Table SET WhereClause='EXISTS (SELECT * FROM AD_Column c WHERE AD_Table.AD_Table_ID=c.AD_Table_ID AND c.IsActive=''Y'' AND c.ColumnName=''Posted'') AND AD_Table.IsView=''N''',Updated=TO_DATE('2020-08-12 04:00:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=206 +; + +SELECT register_migration_script('202008121104_IDEMPIERE-4407.sql') FROM dual +; + diff --git a/migration/i7.1/postgresql/202008121104_IDEMPIERE-4407.sql b/migration/i7.1/postgresql/202008121104_IDEMPIERE-4407.sql new file mode 100644 index 0000000000..16205fec61 --- /dev/null +++ b/migration/i7.1/postgresql/202008121104_IDEMPIERE-4407.sql @@ -0,0 +1,8 @@ +-- IDEMPIERE-4407 Reset Accounting showing Views in the table list +-- Aug 12, 2020, 4:00:06 AM COT +UPDATE AD_Ref_Table SET WhereClause='EXISTS (SELECT * FROM AD_Column c WHERE AD_Table.AD_Table_ID=c.AD_Table_ID AND c.IsActive=''Y'' AND c.ColumnName=''Posted'') AND AD_Table.IsView=''N''',Updated=TO_TIMESTAMP('2020-08-12 04:00:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=206 +; + +SELECT register_migration_script('202008121104_IDEMPIERE-4407.sql') FROM dual +; +