cancel
Showing results for 
Search instead for 
Did you mean: 

How to Reset/Clean activiti database everytime I start

retzer
Champ in-the-making
Champ in-the-making
I need to activiti database to be reset everytime I start my program.

So, I want to ask about databaseSchemaUpdate, When the default schema false. It not reset. But if I use create-drop, when I terminate my program, it drops activiti database so when I start it will created a new one. But sometime in some cases if the database is not dropped it will cause error in the next start with "Table 'act_hi_procinst' already exists…table … already exists".

How to reset activiti database everytime I start my program?
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

In doc:
http://activiti.org/userguide/index.html#databaseConfiguration
create-drop: Creates the schema when the process engine is being created and drops the schema when the process engine is being closed.

Regards
Martin

jbarrez
Star Contributor
Star Contributor
Use 'drop-create'