IDEMPIERE-3698 Change datatype R_MailText.MailText to CLOB / same for R_MailText_Trl

This commit is contained in:
Carlos Ruiz 2019-02-27 13:36:23 +01:00
parent 118170ae3a
commit ae778fc029
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,18 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- IDEMPIERE-3698 Change datatype R_MailText.MailText to CLOB
-- Feb 27, 2019, 1:33:51 PM CET
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_DATE('2019-02-27 13:33:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=14615
;
-- Feb 27, 2019, 1:33:53 PM CET
--ALTER TABLE R_MailText_Trl MODIFY MailText CLOB;
ALTER TABLE R_MailText_Trl ADD Tmp_MailText CLOB;
UPDATE R_MailText_Trl SET Tmp_MailText = TO_CHAR(MailText);
ALTER TABLE R_MailText_Trl DROP COLUMN MailText;
ALTER TABLE R_MailText_Trl RENAME COLUMN Tmp_MailText TO MailText;
SELECT register_migration_script('201902271334_IDEMPIERE-3698.sql') FROM dual
;

View File

@ -0,0 +1,12 @@
-- IDEMPIERE-3698 Change datatype R_MailText.MailText to CLOB
-- Feb 27, 2019, 1:33:51 PM CET
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_TIMESTAMP('2019-02-27 13:33:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=14615
;
-- Feb 27, 2019, 1:33:53 PM CET
INSERT INTO t_alter_column values('r_mailtext_trl','MailText','TEXT',null,null)
;
SELECT register_migration_script('201902271334_IDEMPIERE-3698.sql') FROM dual
;