Foren

How to avoid the creation of table for a particular entity in liferay 6.1

Kiran Kumar Boyini, geändert vor 11 Jahren.

How to avoid the creation of table for a particular entity in liferay 6.1

Expert Beiträge: 287 Beitrittsdatum: 02.06.11 Neueste Beiträge
Hi All,

I want to prevent(avoid) the creation of table using liferay service builder.

How it is possible.

I have found that forum ,we can able to avoid the creation of tables for all the tables which we run in the future using SB.

If we put the below property in portal-ext.properties.


#
    # Set this to true to automatically create tables and populate with default
    # data if the database is empty.
    #
    schema.run.enabled=false



But I want to avoid the creation of table for a particular entity using SB.

Regards,

Kiran.
thumbnail
Jitendra Rajput, geändert vor 11 Jahren.

RE: How to avoid the creation of table for a particular entity in liferay 6

Liferay Master Beiträge: 875 Beitrittsdatum: 07.01.11 Neueste Beiträge
you may need to override this build.auto.upgrade. Setting build.auto.upgrade=false in your service-ext.properties prevents Liferay from trying to automatically apply any changes to the database model when a new version of the plugin is deployed.