From 454361be33fbfb02f76d82a5cd06e77ecec9ea28 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 11 Nov 2015 11:10:03 -0500 Subject: [PATCH] IDEMPIERE-2927 IDEMPIERE 2778 migration scripts fails on Oracle / based on patch from nmicoud --- .../i2.1/oracle/201508201340_IDEMPIERE-2778.sql | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/migration/i2.1/oracle/201508201340_IDEMPIERE-2778.sql b/migration/i2.1/oracle/201508201340_IDEMPIERE-2778.sql index 99bc783923..c4522ca8dd 100644 --- a/migration/i2.1/oracle/201508201340_IDEMPIERE-2778.sql +++ b/migration/i2.1/oracle/201508201340_IDEMPIERE-2778.sql @@ -6,8 +6,17 @@ SET DEFINE OFF UPDATE AD_Column SET FieldLength=4000,Updated=TO_DATE('2015-08-20 15:37:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=50122 ; --- Aug 20, 2015 3:37:48 PM CEST -ALTER TABLE AD_Package_Exp_Detail MODIFY SQLStatement VARCHAR2(4000) DEFAULT NULL +-- Column is NVARCHAR so we must drop it before changing its type to VARCHAR +ALTER TABLE AD_Package_Exp_Detail ADD Tmp_SQLStatement VARCHAR2(4000) DEFAULT NULL +; + +UPDATE AD_Package_Exp_Detail SET Tmp_SQLStatement = TO_CHAR(SQLStatement) +; + +ALTER TABLE AD_Package_Exp_Detail DROP COLUMN SQLStatement +; + +ALTER TABLE AD_Package_Exp_Detail RENAME COLUMN Tmp_SQLStatement TO SQLStatement ; SELECT register_migration_script('201508201340_IDEMPIERE-2778.sql') FROM dual