简体   繁体   中英

Customize Liferay 7.0.2 GA3 core DB Column Sizes

I need to extend Organization.name from VARCHAR(100) to VARCHAR(200) .

I'm working on Liferay 7.0.2 GA3.

There is some mechanism to override liferay-portal/portal-impl/src/META-INF/portal-model-hints.xml ?

Or perhaps something else that can help me?

Changing the core database structure is discouraged and will create an unmaintainable mess: There might be parts which assume the current length (even though I'd hope there aren't). In general it's discouraged to look at the database structure and content anyway.

That being said, I'd be curious to learn about the usecase to use organizations with a name that long. Imagine: In addition to your maintenance tasks for future Liferay upgrades, this would create a real display issue on the UI: The organization name might appear in several places (eg if that organization has a site attached to it). How would you intend to display those names in a way that doesn't totally break the UI?

Or, to summarize: Don't go there. Introduce organizational rules to use shorter organization names. IMHO even 100 characters is waaaay too long to be of practical use.

Also, as you prefer to ask in multiple places , generating the same work multiple times: Don't do this in future .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM