cancel
Showing results for 
Search instead for 
Did you mean: 

Postgres Change Schema

abbask
Champ on-the-rise
Champ on-the-rise
By default Activiti creates tables in the Public schema (in postgres). how can i change this setting to use some other schema e.g. "my-activiti-schema"
6 REPLIES 6

hari
Star Contributor
Star Contributor
You can change the schema in activiti-app.properties which is present under tomcat>lib folder

abbask
Champ on-the-rise
Champ on-the-rise
HI Hari,
Can you please tell me which property to create/modify?

hari
Star Contributor
Star Contributor
I m sorry Abbas. I got your question wrong. Even I m unaware of that.
Lets wait for someone else's reply here.

jbarrez
Star Contributor
Star Contributor
You can provide the schema in the jdbc url in recent versions of the postgres driver afaik.

abbask
Champ on-the-rise
Champ on-the-rise
I have tried it using: http://<my_host>/<db_name>?currentpath=<schema_name>
but it does not work it creates tables in public schema only.

jbarrez
Star Contributor
Star Contributor
should be currentSchema instead:

jdbcSmiley Tongueostgresql://localhost:5432/mydatabase?currentSchema=myschema