Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0043392Openbravo ERP00. Application dictionarypublic2020-03-02 21:502021-10-29 10:16
agonzalez 
cberner 
normalmajoralways
closedfixed 
5
3.0PR19Q3.3 
PR22Q1 
Core
No
0043392: Change column type of body column for table C_POC_EMAILDEFINITION to CLOB
The column body of the table C_POC_EMAILDEFINITION is currently restricted to 4000 characters at database level, and it's not currently possible to introduce HTML templates of more than 4000 characters.
1. Go to Document Type -> Report Templates -> Email Definition
2. Try to add a E-mail template with a body that contains a length of more than 4000 characters
3. An error will be raised
Change the column type of body to CLOB (text in database)
Please check the provided diff file
No tags attached.
causes defect 0047945 closed cberner API Change: Changed C_POC_EMAIL* body column types from varchar to CLOB 
patch c_poc_emaildefinition_columntype.patch (654) 2020-03-02 21:50
https://issues.openbravo.com/file_download.php?file_id=14120&type=bug
patch c_poc_email_columntype.patch (614) 2020-03-03 16:37
https://issues.openbravo.com/file_download.php?file_id=14127&type=bug
Issue History
2020-03-02 21:50agonzalezNew Issue
2020-03-02 21:50agonzalezAssigned To => platform
2020-03-02 21:50agonzalezFile Added: c_poc_emaildefinition_columntype.patch
2020-03-02 21:50agonzalezModules => Core
2020-03-02 21:50agonzalezTriggers an Emergency Pack => No
2020-03-03 16:37agonzalezFile Added: c_poc_email_columntype.patch
2020-03-03 17:59ucarrionNote Added: 0118305
2021-10-26 14:03cbernerStatusnew => acknowledged
2021-10-26 14:03cbernerAssigned Toplatform => cberner
2021-10-26 16:52guilleaerStatusacknowledged => scheduled
2021-10-27 10:21hgbotNote Added: 0132670
2021-10-27 10:28cbernerStatusscheduled => acknowledged
2021-10-27 10:37cbernerStatusacknowledged => scheduled
2021-10-27 15:44AugustoMauchNote Deleted: 0118305
2021-10-28 09:38cbernerRelationship addedcauses 0047945
2021-10-29 09:22hgbotNote Added: 0132731
2021-10-29 09:22hgbotResolutionopen => fixed
2021-10-29 09:22hgbotStatusscheduled => closed
2021-10-29 09:22hgbotFixed in Version => PR22Q1
2021-10-29 09:22hgbotNote Added: 0132732
2021-10-29 09:48hgbotNote Added: 0132735
2021-10-29 10:12hgbotNote Added: 0132750
2021-10-29 10:16hgbotNote Added: 0132751
2021-10-29 10:16hgbotNote Added: 0132752

Notes
(0132670)
hgbot   
2021-10-27 10:21   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/447 [^]
(0132731)
hgbot   
2021-10-29 09:22   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/447 [^]
(0132732)
hgbot   
2021-10-29 09:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 3294ebe59ef4f17f1ddcfdf7974481602df09aab
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2021-10-29T07:21:50+00:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/3294ebe59ef4f17f1ddcfdf7974481602df09aab [^]

Fixes ISSUE-43392: Change column type of body column for table C_POC_EMAIL* to CLOB

C_POC_EMAIL and C_POC_EMAILDEFINITION column body is updated from
varchar to CLOB. This allows not being limited by the 4000 characters
varchar supported. It also has a side-effect though:
- Oracle requires a table recreation on update.database due to the type
being changed from varchar to clob. Tables will not be recreated in
postgres though, because it changes from varchar to text.

---
M src-db/database/model/tables/C_POC_EMAIL.xml
M src-db/database/model/tables/C_POC_EMAILDEFINITION.xml
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0132735)
hgbot   
2021-10-29 09:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: e7a3cee73bdd1af641b94077894f8bd0e635eb11
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2021-10-29T07:48:44+00:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/e7a3cee73bdd1af641b94077894f8bd0e635eb11 [^]

Revert "Fixes ISSUE-43392: Change column type of body column for table C_POC_EMAIL* to CLOB"

This reverts commit 3294ebe59ef4f17f1ddcfdf7974481602df09aab
---
M src-db/database/model/tables/C_POC_EMAIL.xml
M src-db/database/model/tables/C_POC_EMAILDEFINITION.xml
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0132750)
hgbot   
2021-10-29 10:12   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/448 [^]
(0132751)
hgbot   
2021-10-29 10:16   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/448 [^]
(0132752)
hgbot   
2021-10-29 10:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 6c9dd745e8f8781fccb5883ef97c7132a9d8dcd4
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2021-10-29T10:10:14+02:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/6c9dd745e8f8781fccb5883ef97c7132a9d8dcd4 [^]

Fixes ISSUE-43392: Change column type of body column for table C_POC_EMAIL* to CLOB

C_POC_EMAIL and C_POC_EMAILDEFINITION column body is updated from
varchar to CLOB. This allows not being limited by the 4000 characters
varchar supported. It also has a side-effect though:
- Oracle requires a table recreation on update.database due to the type
being changed from varchar to clob. Tables will not be recreated in
postgres though, because it changes from varchar to text.

---
M src-db/database/model/tables/C_POC_EMAIL.xml
M src-db/database/model/tables/C_POC_EMAILDEFINITION.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
---