Page 1 of 1

Erasing my Data on startup

Posted: Thu Nov 01, 2012 12:39 pm
by limebot
I have the Heat Clinic demo on a cloud server and when I upload changes and new versions the database gets reset to the original demo data.
What can be done to prevent that from happening ?

Re: Erasing my Data on startup

Posted: Mon Nov 05, 2012 10:41 am
by aazzolini
If you look in (in site), you will see the following line:

Code: Select all

This tells Hibernate that it should create the database cleanly every startup and drop the data on shutdown.

If you'd like to persist your data, you will want to change it to "create", start up once (to get the initial data in there), shutdown, and then change it to "update".

Subsequent startups will then result in only columns/tables being added if necessary, but your data will remain intact.

You can search the Hibernate documentation for more information on all of the available modes.

Re: Erasing my Data on startup

Posted: Wed Jan 09, 2013 10:10 am
by limebot
I was having this problem before I changed this to say update...
in all occurrences of the project.... all 7 of these statements I changed to say update.
I even went as far to delete the sql files in core/src/sql/**
After 2 months of persistent data one day it erased the database. Its seems that the update and deletion of the SQL still initiated a wipe of my data.

Any thoughts?

Re: Erasing my Data on startup

Posted: Wed Jan 09, 2013 11:22 am
by phillipuniverse
That property ( is the only thing that I know of that could drop the data in your tables. I'm not sure what could be erasing it if in fact you have changed every instance of this property to 'update'.

Re: Erasing my Data on startup

Posted: Wed Jan 09, 2013 8:02 pm
by limebot
Yes I did find one that was create but it was commented out plus the SQL files I erased the tables the last time that happened to me.