Turn off the automatic Update function for portlets (service.properties build.auto.upgrade=false) _liferay Staging

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.