Просмотр исходного кода

Change dev datasource to use 1 db multiple schema

Monte Cillo Co 8 лет назад
Родитель
Сommit
4d82ae577e

+ 2 - 2
crss-admin/crss-admin-dev.yml

@@ -2,9 +2,9 @@ spring:
   profiles:
     include: embedded-ldap
   datasource:
-    url: jdbc:postgresql://localhost:5432/crss_admin
+    url: jdbc:postgresql://localhost:5432/crss?currentSchema=admin
     username: crss_admin
-    password: crss_admin
+    password: CrssAdmin
   mail:
     host: 127.0.0.1
     port: 3025

+ 9 - 9
crss-data/crss-data-dev.yml

@@ -1,8 +1,8 @@
 spring:
   datasource:
-    url: jdbc:postgresql://localhost:5432/crss_data
-    username: crss_data
-    password: crss_data
+    url: jdbc:postgresql://localhost:5432/crss?currentSchema=dataextraction
+    username: crss_dataextraction
+    password: CrssDataExtraction
     hikari:
       connectionTimeout: 10000
       maximumPoolSize: 5
@@ -20,9 +20,9 @@ crss:
   # TODO: renaming of datasource name must also update the binding in data-extraction service and kettle files
   metadata:
     datasource:
-      url: jdbc:postgresql://localhost:5432/crss_data
-      username: crss_data
-      password: crss_data
+      url: jdbc:postgresql://localhost:5432/crss?currentSchema=dataextraction
+      username: crss_dataextraction
+      password: CrssDataExtraction
       hikari:
         connectionTimeout: 10000
         maximumPoolSize: 5
@@ -42,9 +42,9 @@ crss:
         minimumIdle: 2
   registration:
      datasource:
-       url: jdbc:postgresql://localhost:5432/crss_reg
-       username: crss_reg
-       password: crss_reg
+       url: jdbc:postgresql://localhost:5432/crss?currentSchema=registration
+       username: crss_registration
+       password: CrssRegistration
        hikari:
          connectionTimeout: 10000
          maximumPoolSize: 5

+ 2 - 2
crss-metering/crss-metering-dev.yml

@@ -1,9 +1,9 @@
 spring:
   profiles.include: pg-query
   datasource:
-    url: jdbc:postgresql://localhost:5432/crss_metering
+    url: jdbc:postgresql://localhost:5432/crss?currentSchema=metering
     username: crss_metering
-    password: crss_metering
+    password: CrssMetering
     hikari:
       connectionTimeout: 10000
       maximumPoolSize: 20

+ 7 - 8
crss-reg/crss-reg-dev.yml

@@ -1,15 +1,14 @@
 spring:
   datasource:
-    url: jdbc:postgresql://localhost:5432/crss_reg
-    username: crss_reg
-    password: crss_reg
+    url: jdbc:postgresql://localhost:5432/crss?currentSchema=registration
+    username: crss_registration
+    password: CrssRegistration
+    driverClassName: com.edb.Driver
   xdf-control:
     datasource:
-      url: jdbc:postgresql://localhost:5432/crss_xdfcontrol
-      username: crss_xdfcontrol
-      password: crss_xdfcontrol
-
-
+      url: jdbc:postgresql://localhost:5432/dor_rt
+      username: dor_rt
+      password: dor_rt
 
 server:
   port: 8081

+ 3 - 3
crss-sched/crss-sched-dev.yml

@@ -1,9 +1,9 @@
 spring:
   profiles.include: metronome
   datasource:
-    url: jdbc:postgresql://localhost:5432/crss_sched
-    username: crss_sched
-    password: crss_sched
+    url: jdbc:postgresql://localhost:5432/crss?currentSchema=scheduler
+    username: crss_scheduler
+    password: CrssScheduler
     hikari:
       connectionTimeout: 10000
       maximumPoolSize: 5