Skip to content

Commit

Permalink
use db callback to create missing quarters
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Sep 3, 2024
1 parent 21de97c commit dcee4f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,7 @@ values (21, 1,
13, 1, 31, 3, 'metric', null);

insert into quarter (id, label, start_date, end_date)
values (8, 'GJ 23/24-Q3', '2024-01-01', '2024-03-31'),
(9, 'GJ 23/24-Q4', '2024-04-01', '2024-06-30'),
(10, 'GJ 24/25-Q1', '2024-07-01', '2024-09-30'),
(11, 'GJ 24/25-Q2', '2024-10-01', '2024-12-30');
values (8, 'GJ 23/24-Q3', '2024-01-01', '2024-03-31');

delete
from team_organisation;
Expand Down
2 changes: 1 addition & 1 deletion docker/local-prod/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
SPRING_DATASOURCE_URL: jdbc:postgresql://okr-dev-db:5432/okr
SPRING_DATASOURCE_USERNAME: user
SPRING_DATASOURCE_PASSWORD: pwd
SPRING_FLYWAY_LOCATIONS: classpath:db/data-migration,classpath:db/migration
SPRING_FLYWAY_LOCATIONS: classpath:db/data-migration,classpath:db/migration,classpath:db/callback

## In memory DB
# SPRING_DATASOURCE_URL: jdbc:h2:mem:db;DB_CLOSE_DELAY=-1
Expand Down

0 comments on commit dcee4f8

Please sign in to comment.