Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Kiran Kumar Boyini
How to avoid the creation of table for a particular entity in liferay 6.1
3. März 2013 23:20
Antwort

Kiran Kumar Boyini

Rang: Expert

Nachrichten: 277

Eintrittsdatum: 2. Juni 2011

Neue 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.

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



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

Regards,

Kiran.
Jitendra Rajput
RE: How to avoid the creation of table for a particular entity in liferay 6
3. März 2013 23:57
Antwort

Jitendra Rajput

Rang: Liferay Master

Nachrichten: 709

Eintrittsdatum: 7. Januar 2011

Neue 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.