From 74fd5670623c5721d6e709c1a6215ed8596be380 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 26 May 2018 19:45:53 +0200 Subject: [PATCH] IDEMPIERE-3716 Extend the length of the Column SQL field in AD_ViewColumn to allow more advanced queriesa / fix oracle script --- migration/i5.1/oracle/201805200007_IDEMPIERE-3716.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/migration/i5.1/oracle/201805200007_IDEMPIERE-3716.sql b/migration/i5.1/oracle/201805200007_IDEMPIERE-3716.sql index 21814fba72..5f2dae28e3 100644 --- a/migration/i5.1/oracle/201805200007_IDEMPIERE-3716.sql +++ b/migration/i5.1/oracle/201805200007_IDEMPIERE-3716.sql @@ -7,8 +7,10 @@ UPDATE AD_Column SET FieldLength=2000,Updated=TO_DATE('2018-05-19 23:01:06','YYY ; -- May 19, 2018 11:01:08 PM CEST -ALTER TABLE AD_ViewColumn MODIFY ColumnSQL VARCHAR2(2000) DEFAULT NULL -; +ALTER TABLE AD_ViewColumn ADD Tmp_ColumnSQL VARCHAR2(2000) DEFAULT NULL; +UPDATE AD_ViewColumn SET Tmp_ColumnSQL = ColumnSQL; +ALTER TABLE AD_ViewColumn DROP COLUMN ColumnSQL; +ALTER TABLE AD_ViewColumn RENAME COLUMN Tmp_ColumnSQL TO ColumnSQL; SELECT register_migration_script('201805200007_IDEMPIERE-3716.sql') FROM dual ;