Original: http://blog.csdn.net/hantiannan/article/details/6740084
In a portlet in Liferay, the database's table is checked by default, and the new table is automatically inserted if there is no table.
If a table field is updated, it will automatically help you update it as well.
But sometimes when we implement a well-defined table, we don't want the system to change. The length of the field may not be the same, the index may not be expected, and so on.
In fact, the function of this automatic release is determined by Service.properties Build.auto.upgrade=true OR false.
If true, it is updated, and if false, it will not be updated. However, the default is that this value is true.
To modify the default value to False, the following methods are:
1. Locate the/LIFERAY-PORTAL-SRC-6.0.X/PORTAL-IMPL/SRC/COM/LIFERAY/PORTAL/TOOLS/SERVICEBUILDER/DEPENDENCIES/PROPS.FTL file.
2. Modify Build.auto.upgrade=true for Build.auto.upgrade=false.
In this way, the value of the Service.properties Build.auto.upgrade is false when the Service.xml build is made.