-- IDEMPIERE-4550 Fix columns length difference between AD and DB
SELECT register_migration_script('202203261837_IDEMPIERE-4550.sql') FROM dual;

SET SQLBLANKLINES ON
SET DEFINE OFF

-- 26/03/2022, 6:37:19 p. m. GMT+01:00
UPDATE AD_Column SET FieldLength=1,Updated=TO_TIMESTAMP('2022-03-26 18:37:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55810
;


-- 26/03/2022, 6:45:16 p. m. GMT+01:00
ALTER TABLE AD_FieldGroup MODIFY FieldGroupType VARCHAR2(10 CHAR) DEFAULT NULL 
;

-- 26/03/2022, 6:51:08 p. m. GMT+01:00
UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2022-03-26 18:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211257
;

-- 26/03/2022, 6:51:32 p. m. GMT+01:00
UPDATE AD_InfoProcess SET LayoutType='B' WHERE LayoutType IS NULL
;

-- 26/03/2022, 6:56:07 p. m. GMT+01:00
UPDATE AD_Column SET IsActive='Y',Updated=TO_TIMESTAMP('2022-03-26 18:56:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=52069
;

-- 26/03/2022, 6:56:54 p. m. GMT+01:00
ALTER TABLE AD_PrintFormat MODIFY Args VARCHAR2(510 CHAR) DEFAULT NULL 
;

-- 26/03/2022, 6:57:10 p. m. GMT+01:00
UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2022-03-26 18:57:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=52069
;

-- 26/03/2022, 6:59:45 p. m. GMT+01:00
ALTER TABLE AD_UserBPAccess MODIFY DocBaseType VARCHAR2(10 CHAR) DEFAULT NULL 
;

-- 26/03/2022, 7:02:56 p. m. GMT+01:00
UPDATE AD_Column SET FieldLength=1,Updated=TO_TIMESTAMP('2022-03-26 19:02:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=13894
;

-- 26/03/2022, 7:06:50 p. m. GMT+01:00
UPDATE AD_Column SET FieldLength=510, SeqNoSelection=10,Updated=TO_TIMESTAMP('2022-03-26 19:06:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2011
;

-- 26/03/2022, 8:24:05 p. m. GMT+01:00
ALTER TABLE M_Product MODIFY Value VARCHAR2(510 CHAR)
;

-- 26/03/2022, 7:08:38 p. m. GMT+01:00
ALTER TABLE R_IssueProject MODIFY Name VARCHAR2(120 CHAR)
;

-- 26/03/2022, 7:10:54 p. m. GMT+01:00
UPDATE AD_Column SET FieldLength=3,Updated=TO_TIMESTAMP('2022-03-26 19:10:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12926
;

-- 26/03/2022, 7:31:00 p. m. GMT+01:00
UPDATE AD_Column SET FieldLength=255,Updated=TO_TIMESTAMP('2022-03-26 19:31:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6008
;

-- 26/03/2022, 7:31:10 p. m. GMT+01:00
ALTER TABLE PA_ReportColumn MODIFY Name VARCHAR2(255 CHAR)
;

-- 26/03/2022, 7:37:32 p. m. GMT+01:00
UPDATE AD_Column SET FieldLength=255,Updated=TO_TIMESTAMP('2022-03-26 19:37:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6054
;

-- 26/03/2022, 7:37:37 p. m. GMT+01:00
ALTER TABLE PA_ReportLine MODIFY Name VARCHAR2(255 CHAR)
;

