IDEMPIERE-2927 IDEMPIERE 2778 migration scripts fails on Oracle / based on patch from nmicoud
This commit is contained in:
parent
30e1eadfd2
commit
454361be33
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue