02-21-2018 03:03 AM
hello, i have a problem with activiti-rest, when i configure my database postgresql in db.proprietes, the creation of tables is done automatically in the public shemas, i want to change shema how i do to give it my own shema
02-21-2018 12:33 PM
Hi Yasmine,
If you're using postgreSQL JDBC driver 9.4 or above, you can use the jdbc url param "currentSchema"
datasource.url=jdbcostgresql://localhost:5432/activitiapp?currentSchema=someotherschema
if using previous versions I have read that you can use the "search-path" param instead but it seems undocumented.
02-22-2018 04:33 AM
thank you i have this configuration how can i modifie it
db=postgres
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbcostgresql://localhost:5432/activiti
jdbc.username=postgres
jdbc.password=postgres
02-22-2018 04:47 AM
The normal activiti property for activiti should be datasource.url...not sure why you use someting different (I guess you're integrating activiti in another project...?)
Anyway... try to change:
jdbc.url=jdbcostgresql://localhost:5432/activiti
to:
jdbc.url=jdbcostgresql://localhost:5432/activiti?currentSchema=someotherschema
As stated before "currentSchema" works only for 9.4 postgres jdbc driver and above. MAke sure you have the right version.
Explore our Alfresco products with the links below. Use labels to filter content by product module.