Alter entity column size or type

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Alter entity column size or type

Sakthivel Vellingiri
OFBiz Version 17.12.03

Framework Gurus : Pls can you confirm if changing column size or type for
an entity is still NOT in scope for <extend-entity

I was able to successfully add columns using <extend-entity, however no
success with altering column size or type

I came across this thread from back in the days, which suggests > altering
size or type is NOT in scope for <extend-entity; Just wanted to check this
is still the case with newer versions in the likes of 17.12.03 or 17.12.04;
Appreciate any insights.

http://ofbiz.135035.n4.nabble.com/Alter-entity-column-size-or-type-td154089.html
Reply | Threaded
Open this post in threaded view
|

Re: Alter entity column size or type

Jacques Le Roux
Administrator
Hi Sakthivel,

I did something related to PK only with https://issues.apache.org/jira/browse/OFBIZ-5648

It allowed me to change the type so length of PKs

Are you sure it does not work for NONPK fields (disclaimer did not try but reading the code it should)?

Anyway better to check the code, the change in ModelEntity.java.patch
<https://issues.apache.org/jira/secure/attachment/12645648/ModelEntity.java.patch> is simple

I notably read at line 369 of ModelEntity.java:

// TODO: only overrides of type, colName, description and enable-audit-log are currently supported

HTH

Jacques

Le 04/10/2020 à 00:26, Sakthivel Vellingiri a écrit :

> OFBiz Version 17.12.03
>
> Framework Gurus : Pls can you confirm if changing column size or type for
> an entity is still NOT in scope for <extend-entity
>
> I was able to successfully add columns using <extend-entity, however no
> success with altering column size or type
>
> I came across this thread from back in the days, which suggests > altering
> size or type is NOT in scope for <extend-entity; Just wanted to check this
> is still the case with newer versions in the likes of 17.12.03 or 17.12.04;
> Appreciate any insights.
>
> http://ofbiz.135035.n4.nabble.com/Alter-entity-column-size-or-type-td154089.html