Skip to content

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
juncevich committed May 10, 2023
1 parent b8fb07a commit 239eea4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- 5432:5432
environment:
POSTGRES_PASSWORD: example
POSTGRES_USER: user
POSTGRES_USER: sample_user
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 1s
Expand Down
2 changes: 1 addition & 1 deletion relay-store-service/k8s_pg/pg_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ global:
##
auth:
postgresPassword: Qwerty12345
username: user
username: sample_user
password: example
database: postgresql
2 changes: 1 addition & 1 deletion relay-store-service/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ spring:
name: relay-service
datasource:
url: jdbc:postgresql://postgresql:5432/postgres
username: user
username: sample_user
password: example
jpa:
database: postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ create table relay
primary key (id)
);

GRANT SELECT ON TABLE relay TO sample_user;

INSERT INTO relay (id, creation_date, last_check_date, relay_type, serial_number, update_date, version, container_id)
VALUES (1, '2020-11-21 17:53:45.684000', '2020-11-21 18:53:53.000000', null, '1234567', null, 1, null);
INSERT INTO relay (id, creation_date, last_check_date, relay_type, serial_number, update_date, version, container_id)
Expand Down

0 comments on commit 239eea4

Please sign in to comment.