In Liferay you can easily modify DB column size.
Here is the example for Column with type String.
By default if we use type as a string in service.xml then size will be 75.
By doing few changes inside portlet-model-hints.xml. This configuration file is available inside src/META-INF directory. To increase column size do something like this.
If max-length is less-then 4000 then column type will be Varchar.
If max-length is equal to 4000 then column type will be STRING. If max-length is greater then 4000 then column type will be TEXT.
By doing few changes inside portlet-model-hints.xml. This configuration file is available inside src/META-INF directory. To increase column size do something like this.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<field name="columnName" type="String"> | |
<hint name="max-length">4000</hint> | |
</field> |
If max-length is equal to 4000 then column type will be STRING. If max-length is greater then 4000 then column type will be TEXT.