Fórumok
Avoid service builder database upgrades
Jose García, módosítva 13 év-val korábban
Avoid service builder database upgrades
New Member Bejegyzések: 2 Csatlakozás dátuma: 2011.02.27. Legújabb bejegyzések
Hi
Is possible to avoid the Service Builder database upgrade process? I would like to manage the database by myself not by any useless "magic" in Service Builder.
I read about adding to service-ext.properties this line:
build.auto.upgrade=false
but seem not working. In any case I end with default table definition from Service Builder and all records deleted.
I hope there's any easy way to disable this annoying feature, it's really frustrating.
Thanks in advance and regards,
Jose García
Is possible to avoid the Service Builder database upgrade process? I would like to manage the database by myself not by any useless "magic" in Service Builder.
I read about adding to service-ext.properties this line:
build.auto.upgrade=false
but seem not working. In any case I end with default table definition from Service Builder and all records deleted.
I hope there's any easy way to disable this annoying feature, it's really frustrating.
Thanks in advance and regards,
Jose García
Hitoshi Ozawa, módosítva 13 év-val korábban
RE: Avoid service builder database upgrades
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
Are you using the bundle Liferay package with demo 7cogs.com? If you're finished looking at the demo, you should delete 7cogs from the WEBAPPS folder.
Add the following property in the 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
Add the following property in the 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
Jose García, módosítva 13 év-val korábban
RE: Avoid service builder database upgrades
New Member Bejegyzések: 2 Csatlakozás dátuma: 2011.02.27. Legújabb bejegyzések
Hi Hitoshi
Thanks for response, i think is not really related to my problem but will try.
The setting
seem to be to not load sample data, but my problem is with a custom portlet. The portlet uses Service Builder, but don't want to manage database upgrades automatically by Service Builder. Not sure if any setting to disable this feature.
Regards,
Jose García
Thanks for response, i think is not really related to my problem but will try.
The setting
schema.run.enabled=false
seem to be to not load sample data, but my problem is with a custom portlet. The portlet uses Service Builder, but don't want to manage database upgrades automatically by Service Builder. Not sure if any setting to disable this feature.
Regards,
Jose García
Hitoshi Ozawa, módosítva 13 év-val korábban
RE: Avoid service builder database upgrades
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
I'm not sure if this will help you, but ServiceBuilder resources are defined in files in the following directory of Liferay source. I don't know about your custom portlet so you'll have to do some research yourself.
\portal-impl\src\resource-actions
\portal-impl\src\resource-actions
Petr Vlček, módosítva 13 év-val korábban
RE: Avoid service builder database upgrades
New Member Bejegyzések: 5 Csatlakozás dátuma: 2010.09.12. Legújabb bejegyzések
It should work but it seems, that is hasn't been properly fixed yet: http://issues.liferay.com/browse/LPS-642.
Chirag M Gurav, módosítva 9 év-val korábban
RE: Avoid service builder database upgrades
Junior Member Bejegyzések: 34 Csatlakozás dátuma: 2013.01.04. Legújabb bejegyzések
.Hello Everyone i am facing same issue and i have done the given below steps like adding build.auto.upgrade=false in the service-ext.properties and its working fine but after restarting the tomcat its affecting the database so any one find the solution please help
Thanks
Thanks
Zuber Ahmed Khalpa, módosítva 9 év-val korábban
RE: Avoid service builder database upgrades
New Member Bejegyzések: 6 Csatlakozás dátuma: 2012.05.03. Legújabb bejegyzések
Hi,
If u updating service.xml and your custom tables have taken multiple records that time liferay take backup your custom tables and after that it upgrade your custom table,updating time some records r deleted.
Try this solution :
Before deploying service.xml porlet, remove buildNamespace which is define in service.xml from liferay servicecomponent table. Then after deploy your updated service.xml portlet, now liferay only check tables are available or not which define in service.xml file.
If u updating service.xml and your custom tables have taken multiple records that time liferay take backup your custom tables and after that it upgrade your custom table,updating time some records r deleted.
Try this solution :
Before deploying service.xml porlet, remove buildNamespace which is define in service.xml from liferay servicecomponent table. Then after deploy your updated service.xml portlet, now liferay only check tables are available or not which define in service.xml file.