IDEMPIERE-4398 Database inconsistency with dictionary for types CHAR (#209)

This commit is contained in:
Carlos Ruiz 2020-08-07 10:16:43 +02:00 committed by GitHub
parent a84adbad80
commit 7894bd9ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,49 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- IDEMPIERE-4398 Database inconsistency with dictionary for types CHAR
-- Aug 6, 2020, 6:04:11 PM CEST
ALTER TABLE AD_OrgInfo MODIFY DUNS VARCHAR2(11 CHAR)
;
-- Aug 6, 2020, 6:04:51 PM CEST
ALTER TABLE C_BPartner MODIFY DUNS VARCHAR2(11 CHAR) DEFAULT NULL
;
-- Aug 6, 2020, 6:05:10 PM CEST
ALTER TABLE C_BPartner MODIFY NAICS VARCHAR2(6 CHAR) DEFAULT NULL
;
-- Aug 6, 2020, 6:07:03 PM CEST
ALTER TABLE GL_JournalGenerator MODIFY GenerateGLJournal VARCHAR2(10) DEFAULT NULL
;
-- Aug 6, 2020, 6:07:58 PM CEST
UPDATE AD_Column SET FieldLength=1,Updated=TO_DATE('2020-08-06 18:07:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200509
;
UPDATE gl_journalgenerator SET generategljournal=trim(generategljournal);
-- Aug 6, 2020, 6:08:00 PM CEST
ALTER TABLE GL_JournalGenerator MODIFY GenerateGLJournal CHAR(1) DEFAULT NULL
;
-- Aug 6, 2020, 6:08:38 PM CEST
ALTER TABLE I_BPartner MODIFY DUNS VARCHAR2(11 CHAR) DEFAULT NULL
;
-- Aug 6, 2020, 6:08:50 PM CEST
ALTER TABLE I_BPartner MODIFY NAICS VARCHAR2(6 CHAR) DEFAULT NULL
;
-- Aug 6, 2020, 6:09:14 PM CEST
ALTER TABLE M_Product_PO MODIFY Manufacturer VARCHAR2(30 CHAR) DEFAULT NULL
;
-- Aug 6, 2020, 6:09:31 PM CEST
ALTER TABLE M_Product_PO MODIFY VendorCategory VARCHAR2(30 CHAR) DEFAULT NULL
;
SELECT register_migration_script('202008061811_IDEMPIERE-4398.sql') FROM dual
;

View File

@ -0,0 +1,46 @@
-- IDEMPIERE-4398 Database inconsistency with dictionary for types CHAR
-- Aug 6, 2020, 6:04:11 PM CEST
INSERT INTO t_alter_column values('ad_orginfo','DUNS','VARCHAR(11)',null,null)
;
-- Aug 6, 2020, 6:04:51 PM CEST
INSERT INTO t_alter_column values('c_bpartner','DUNS','VARCHAR(11)',null,'NULL')
;
-- Aug 6, 2020, 6:05:10 PM CEST
INSERT INTO t_alter_column values('c_bpartner','NAICS','VARCHAR(6)',null,'NULL')
;
-- Aug 6, 2020, 6:07:03 PM CEST
INSERT INTO t_alter_column values('gl_journalgenerator','GenerateGLJournal','VARCHAR(10)',null,'NULL')
;
-- Aug 6, 2020, 6:07:58 PM CEST
UPDATE AD_Column SET FieldLength=1,Updated=TO_TIMESTAMP('2020-08-06 18:07:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200509
;
UPDATE gl_journalgenerator SET generategljournal=trim(generategljournal);
-- Aug 6, 2020, 6:08:00 PM CEST
INSERT INTO t_alter_column values('gl_journalgenerator','GenerateGLJournal','CHAR(1)',null,'NULL')
;
-- Aug 6, 2020, 6:08:38 PM CEST
INSERT INTO t_alter_column values('i_bpartner','DUNS','VARCHAR(11)',null,'NULL')
;
-- Aug 6, 2020, 6:08:50 PM CEST
INSERT INTO t_alter_column values('i_bpartner','NAICS','VARCHAR(6)',null,'NULL')
;
-- Aug 6, 2020, 6:09:14 PM CEST
INSERT INTO t_alter_column values('m_product_po','Manufacturer','VARCHAR(30)',null,'NULL')
;
-- Aug 6, 2020, 6:09:31 PM CEST
INSERT INTO t_alter_column values('m_product_po','VendorCategory','VARCHAR(30)',null,'NULL')
;
SELECT register_migration_script('202008061811_IDEMPIERE-4398.sql') FROM dual
;