From 2cc2f9d51f83e940453f82f4145e8c688063e23e Mon Sep 17 00:00:00 2001 From: Nicolas Micoud Date: Fri, 27 Apr 2018 10:44:21 +0200 Subject: [PATCH] IDEMPIERE-3698 Change datatype R_MailText.MailText to CLOB --- .../i5.1/oracle/201804251707_IDEMPIERE-3698.sql | 16 ++++++++++++++++ .../postgresql/201804251707_IDEMPIERE-3698.sql | 11 +++++++++++ 2 files changed, 27 insertions(+) create mode 100644 migration/i5.1/oracle/201804251707_IDEMPIERE-3698.sql create mode 100644 migration/i5.1/postgresql/201804251707_IDEMPIERE-3698.sql diff --git a/migration/i5.1/oracle/201804251707_IDEMPIERE-3698.sql b/migration/i5.1/oracle/201804251707_IDEMPIERE-3698.sql new file mode 100644 index 0000000000..c4874f48b2 --- /dev/null +++ b/migration/i5.1/oracle/201804251707_IDEMPIERE-3698.sql @@ -0,0 +1,16 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- R_MailText.MailText +-- Apr 25, 2018 5:01:41 PM CEST +UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_DATE('2018-04-25 17:01:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5414 +; + +-- Apr 25, 2018 5:01:48 PM CEST +ALTER TABLE R_MailText ADD Tmp_MailText CLOB; +UPDATE R_MailText SET Tmp_MailText = TO_CHAR(MailText); +ALTER TABLE R_MailText DROP COLUMN MailText; +ALTER TABLE R_MailText RENAME COLUMN Tmp_MailText TO MailText; + +SELECT register_migration_script('201804251707_IDEMPIERE-3698.sql') FROM dual +; diff --git a/migration/i5.1/postgresql/201804251707_IDEMPIERE-3698.sql b/migration/i5.1/postgresql/201804251707_IDEMPIERE-3698.sql new file mode 100644 index 0000000000..59ea8fd0c1 --- /dev/null +++ b/migration/i5.1/postgresql/201804251707_IDEMPIERE-3698.sql @@ -0,0 +1,11 @@ +-- R_MailText.MailText +-- Apr 25, 2018 5:01:41 PM CEST +UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_TIMESTAMP('2018-04-25 17:01:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5414 +; + +-- Apr 25, 2018 5:01:48 PM CEST +INSERT INTO t_alter_column values('r_mailtext','MailText','TEXT',null,null) +; + +SELECT register_migration_script('201804251707_IDEMPIERE-3698.sql') FROM dual +;