Skip to content

Commit 181e591

Browse files
fix flyway migration order for email logs
Signed-off-by: vimal-java-dev <vimal929@gmail.com>
1 parent f907e23 commit 181e591

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
ports:
3030
- "8080:8080"
3131
env_file:
32-
- .env.dev
32+
- .env.prod
3333
environment:
3434
SPRING_PROFILES_ACTIVE: prod
3535
restart: unless-stopped

src/main/resources/application-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spring:
77

88
jpa:
99
hibernate:
10-
ddl-auto: validate
10+
ddl-auto: update
1111
properties:
1212
hibernate:
1313
jdbc:

src/main/resources/db/migration/V4__create_email_logs_table.sql renamed to src/main/resources/db/migration/V3__create_email_logs_table.sql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,4 @@ CREATE TABLE IF NOT EXISTS email_logs (
1616
created_at TIMESTAMP NOT NULL,
1717

1818
last_attempt_at TIMESTAMP
19-
);
20-
21-
CREATE INDEX IF NOT EXISTS idx_email_logs_status
22-
ON email_logs(status);
19+
);

src/main/resources/db/migration/V3__create_email_logs_indexes.sql renamed to src/main/resources/db/migration/V4__create_email_logs_indexes.sql

File renamed without changes.

0 commit comments

Comments
 (0)