From dcfc95bb3c7fb385a7abdf82875fd5706dd0f9ab Mon Sep 17 00:00:00 2001 From: Moti Asayag Date: Thu, 15 Jun 2023 09:23:15 +0300 Subject: [PATCH] Dropping postgres db added to README Signed-off-by: Moti Asayag --- workflow-service/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/workflow-service/README.md b/workflow-service/README.md index 274107304..0f4cb7066 100644 --- a/workflow-service/README.md +++ b/workflow-service/README.md @@ -153,7 +153,13 @@ export DATASOURCE_DRIVER="org.postgresql.Driver" export DATASOURCE_USERNAME="parodos" export DATASOURCE_PASSWORD="parodos" ``` - +Sometimes, changes are made to the database schema. In order to apply these changes, you need to drop and recreate the database. +Dropping and recreating the database (only in development environment): +```sql +drop DATABASE workflow_service;CREATE DATABASE workflow_service; +CREATE USER parodos WITH PASSWORD 'parodos'; +GRANT ALL PRIVILEGES ON DATABASE workflow_service TO parodos; +``` ### How to configure my workflow configuration class in different package? the environment variable for workflow configuration in different package: * CONFIGURATION_PACKAGE