From d7f6cc7b84946efd147c53810aba057df5785c39 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 14 Mar 2019 11:44:03 +0100 Subject: [PATCH] IDEMPIERE-3916 Process to move client between databases / FHEG-599 / fix oracle script - increase size to 4.000 --- .../oracle/201903131326_IDEMPIERE-3916.sql | 44 ++++++++++++------- .../201903131326_IDEMPIERE-3916.sql | 24 +++++----- 2 files changed, 40 insertions(+), 28 deletions(-) diff --git a/migration/i6.2/oracle/201903131326_IDEMPIERE-3916.sql b/migration/i6.2/oracle/201903131326_IDEMPIERE-3916.sql index 8bb6814724..9a42806cc3 100644 --- a/migration/i6.2/oracle/201903131326_IDEMPIERE-3916.sql +++ b/migration/i6.2/oracle/201903131326_IDEMPIERE-3916.sql @@ -233,52 +233,64 @@ CREATE UNIQUE INDEX UX_T_MoveClient ON T_MoveClient (AD_PInstance_ID,TableName,S ; -- Mar 13, 2019 7:28:16 PM CET -UPDATE AD_Process_Para SET FieldLength=2000,Updated=TO_DATE('2019-03-13 19:28:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200259 +UPDATE AD_Process_Para SET FieldLength=4000,Updated=TO_DATE('2019-03-13 19:28:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200259 ; -- Mar 13, 2019 7:28:19 PM CET -UPDATE AD_Process_Para SET FieldLength=2000,Updated=TO_DATE('2019-03-13 19:28:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200260 +UPDATE AD_Process_Para SET FieldLength=4000,Updated=TO_DATE('2019-03-13 19:28:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200260 ; -- Mar 13, 2019 7:28:22 PM CET -UPDATE AD_Process_Para SET FieldLength=2000,Updated=TO_DATE('2019-03-13 19:28:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200261 +UPDATE AD_Process_Para SET FieldLength=4000,Updated=TO_DATE('2019-03-13 19:28:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200261 ; -- Mar 13, 2019 7:28:27 PM CET -UPDATE AD_Process_Para SET FieldLength=2000,Updated=TO_DATE('2019-03-13 19:28:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200263 +UPDATE AD_Process_Para SET FieldLength=4000,Updated=TO_DATE('2019-03-13 19:28:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200263 ; -- Mar 13, 2019 7:29:49 PM CET -UPDATE AD_Column SET FieldLength=2000,Updated=TO_DATE('2019-03-13 19:29:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5664 +UPDATE AD_Column SET FieldLength=4000,Updated=TO_DATE('2019-03-13 19:29:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5664 ; -- Mar 13, 2019 7:29:51 PM CET -ALTER TABLE AD_PInstance_Para MODIFY Info VARCHAR2(2000) DEFAULT NULL -; +-- ALTER TABLE AD_PInstance_Para MODIFY Info VARCHAR2(4000) DEFAULT NULL +ALTER TABLE AD_PInstance_Para ADD Tmp_Info VARCHAR2(4000) DEFAULT NULL; +UPDATE AD_PInstance_Para SET Tmp_Info = Info; +ALTER TABLE AD_PInstance_Para DROP COLUMN Info; +ALTER TABLE AD_PInstance_Para RENAME COLUMN Tmp_Info TO Info; -- Mar 13, 2019 7:29:59 PM CET -UPDATE AD_Column SET FieldLength=2000,Updated=TO_DATE('2019-03-13 19:29:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5665 +UPDATE AD_Column SET FieldLength=4000,Updated=TO_DATE('2019-03-13 19:29:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5665 ; -- Mar 13, 2019 7:30:00 PM CET -ALTER TABLE AD_PInstance_Para MODIFY Info_To VARCHAR2(2000) DEFAULT NULL -; +-- ALTER TABLE AD_PInstance_Para MODIFY Info_To VARCHAR2(4000) DEFAULT NULL +ALTER TABLE AD_PInstance_Para ADD Tmp_Info_To VARCHAR2(4000) DEFAULT NULL; +UPDATE AD_PInstance_Para SET Tmp_Info_To = Info_To; +ALTER TABLE AD_PInstance_Para DROP COLUMN Info_To; +ALTER TABLE AD_PInstance_Para RENAME COLUMN Tmp_Info_To TO Info_To; -- Mar 13, 2019 7:30:20 PM CET -UPDATE AD_Column SET FieldLength=2000,Updated=TO_DATE('2019-03-13 19:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2791 +UPDATE AD_Column SET FieldLength=4000,Updated=TO_DATE('2019-03-13 19:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2791 ; -- Mar 13, 2019 7:30:21 PM CET -ALTER TABLE AD_PInstance_Para MODIFY P_String VARCHAR2(2000) DEFAULT NULL -; +-- ALTER TABLE AD_PInstance_Para MODIFY P_String VARCHAR2(4000) DEFAULT NULL +ALTER TABLE AD_PInstance_Para ADD Tmp_P_String VARCHAR2(4000) DEFAULT NULL; +UPDATE AD_PInstance_Para SET Tmp_P_String = P_String; +ALTER TABLE AD_PInstance_Para DROP COLUMN P_String; +ALTER TABLE AD_PInstance_Para RENAME COLUMN Tmp_P_String TO P_String; -- Mar 13, 2019 7:30:28 PM CET -UPDATE AD_Column SET FieldLength=2000,Updated=TO_DATE('2019-03-13 19:30:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2792 +UPDATE AD_Column SET FieldLength=4000,Updated=TO_DATE('2019-03-13 19:30:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2792 ; -- Mar 13, 2019 7:30:30 PM CET -ALTER TABLE AD_PInstance_Para MODIFY P_String_To VARCHAR2(2000) DEFAULT NULL -; +-- ALTER TABLE AD_PInstance_Para MODIFY P_String_To VARCHAR2(4000) DEFAULT NULL +ALTER TABLE AD_PInstance_Para ADD Tmp_P_String_To VARCHAR2(4000) DEFAULT NULL; +UPDATE AD_PInstance_Para SET Tmp_P_String_To = P_String_To; +ALTER TABLE AD_PInstance_Para DROP COLUMN P_String_To; +ALTER TABLE AD_PInstance_Para RENAME COLUMN Tmp_P_String_To TO P_String_To; SELECT register_migration_script('201903131326_IDEMPIERE-3916.sql') FROM dual ; diff --git a/migration/i6.2/postgresql/201903131326_IDEMPIERE-3916.sql b/migration/i6.2/postgresql/201903131326_IDEMPIERE-3916.sql index 30b90b8e97..830f388392 100644 --- a/migration/i6.2/postgresql/201903131326_IDEMPIERE-3916.sql +++ b/migration/i6.2/postgresql/201903131326_IDEMPIERE-3916.sql @@ -230,51 +230,51 @@ CREATE UNIQUE INDEX UX_T_MoveClient ON T_MoveClient (AD_PInstance_ID,TableName,S ; -- Mar 13, 2019 7:28:16 PM CET -UPDATE AD_Process_Para SET FieldLength=2000,Updated=TO_TIMESTAMP('2019-03-13 19:28:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200259 +UPDATE AD_Process_Para SET FieldLength=4000,Updated=TO_TIMESTAMP('2019-03-13 19:28:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200259 ; -- Mar 13, 2019 7:28:19 PM CET -UPDATE AD_Process_Para SET FieldLength=2000,Updated=TO_TIMESTAMP('2019-03-13 19:28:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200260 +UPDATE AD_Process_Para SET FieldLength=4000,Updated=TO_TIMESTAMP('2019-03-13 19:28:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200260 ; -- Mar 13, 2019 7:28:22 PM CET -UPDATE AD_Process_Para SET FieldLength=2000,Updated=TO_TIMESTAMP('2019-03-13 19:28:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200261 +UPDATE AD_Process_Para SET FieldLength=4000,Updated=TO_TIMESTAMP('2019-03-13 19:28:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200261 ; -- Mar 13, 2019 7:28:27 PM CET -UPDATE AD_Process_Para SET FieldLength=2000,Updated=TO_TIMESTAMP('2019-03-13 19:28:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200263 +UPDATE AD_Process_Para SET FieldLength=4000,Updated=TO_TIMESTAMP('2019-03-13 19:28:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200263 ; -- Mar 13, 2019 7:29:49 PM CET -UPDATE AD_Column SET FieldLength=2000,Updated=TO_TIMESTAMP('2019-03-13 19:29:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5664 +UPDATE AD_Column SET FieldLength=4000,Updated=TO_TIMESTAMP('2019-03-13 19:29:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5664 ; -- Mar 13, 2019 7:29:51 PM CET -INSERT INTO t_alter_column values('ad_pinstance_para','Info','VARCHAR(2000)',null,'NULL') +INSERT INTO t_alter_column values('ad_pinstance_para','Info','VARCHAR(4000)',null,'NULL') ; -- Mar 13, 2019 7:29:59 PM CET -UPDATE AD_Column SET FieldLength=2000,Updated=TO_TIMESTAMP('2019-03-13 19:29:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5665 +UPDATE AD_Column SET FieldLength=4000,Updated=TO_TIMESTAMP('2019-03-13 19:29:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5665 ; -- Mar 13, 2019 7:30:00 PM CET -INSERT INTO t_alter_column values('ad_pinstance_para','Info_To','VARCHAR(2000)',null,'NULL') +INSERT INTO t_alter_column values('ad_pinstance_para','Info_To','VARCHAR(4000)',null,'NULL') ; -- Mar 13, 2019 7:30:20 PM CET -UPDATE AD_Column SET FieldLength=2000,Updated=TO_TIMESTAMP('2019-03-13 19:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2791 +UPDATE AD_Column SET FieldLength=4000,Updated=TO_TIMESTAMP('2019-03-13 19:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2791 ; -- Mar 13, 2019 7:30:21 PM CET -INSERT INTO t_alter_column values('ad_pinstance_para','P_String','VARCHAR(2000)',null,'NULL') +INSERT INTO t_alter_column values('ad_pinstance_para','P_String','VARCHAR(4000)',null,'NULL') ; -- Mar 13, 2019 7:30:28 PM CET -UPDATE AD_Column SET FieldLength=2000,Updated=TO_TIMESTAMP('2019-03-13 19:30:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2792 +UPDATE AD_Column SET FieldLength=4000,Updated=TO_TIMESTAMP('2019-03-13 19:30:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2792 ; -- Mar 13, 2019 7:30:30 PM CET -INSERT INTO t_alter_column values('ad_pinstance_para','P_String_To','VARCHAR(2000)',null,'NULL') +INSERT INTO t_alter_column values('ad_pinstance_para','P_String_To','VARCHAR(4000)',null,'NULL') ; SELECT register_migration_script('201903131326_IDEMPIERE-3916.sql') FROM dual