From d42372df509c2c1fd71dfe02d13fb593e545056d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 26 Mar 2019 15:58:30 -0300 Subject: [PATCH] IDEMPIERE-1085 Loading Info windows dynamically - fix wrong default found on AD_InfoWindow.SeqNo --- migration/i6.2/oracle/201903261557_IDEMPIERE-1085.sql | 11 +++++++++++ .../i6.2/postgresql/201903261557_IDEMPIERE-1085.sql | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 migration/i6.2/oracle/201903261557_IDEMPIERE-1085.sql create mode 100644 migration/i6.2/postgresql/201903261557_IDEMPIERE-1085.sql diff --git a/migration/i6.2/oracle/201903261557_IDEMPIERE-1085.sql b/migration/i6.2/oracle/201903261557_IDEMPIERE-1085.sql new file mode 100644 index 0000000000..0a9ebcbd15 --- /dev/null +++ b/migration/i6.2/oracle/201903261557_IDEMPIERE-1085.sql @@ -0,0 +1,11 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-1085 Loading Info windows dynamically +-- Mar 26, 2019, 3:56:49 PM BRT +UPDATE AD_Column SET DefaultValue='@SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_InfoWindow',Updated=TO_DATE('2019-03-26 15:56:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210510 +; + +SELECT register_migration_script('201903261557_IDEMPIERE-1085.sql') FROM dual +; + diff --git a/migration/i6.2/postgresql/201903261557_IDEMPIERE-1085.sql b/migration/i6.2/postgresql/201903261557_IDEMPIERE-1085.sql new file mode 100644 index 0000000000..8949587f1f --- /dev/null +++ b/migration/i6.2/postgresql/201903261557_IDEMPIERE-1085.sql @@ -0,0 +1,8 @@ +-- IDEMPIERE-1085 Loading Info windows dynamically +-- Mar 26, 2019, 3:56:49 PM BRT +UPDATE AD_Column SET DefaultValue='@SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_InfoWindow',Updated=TO_TIMESTAMP('2019-03-26 15:56:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210510 +; + +SELECT register_migration_script('201903261557_IDEMPIERE-1085.sql') FROM dual +; +