File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
java/com/daramg/server/common/config Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ package com .daramg .server .common .config ;
2+
3+ import org .flywaydb .core .Flyway ;
4+ import org .springframework .boot .autoconfigure .flyway .FlywayMigrationStrategy ;
5+ import org .springframework .context .annotation .Bean ;
6+ import org .springframework .context .annotation .Configuration ;
7+
8+ @ Configuration
9+ public class FlywayConfig {
10+
11+ @ Bean
12+ public FlywayMigrationStrategy flywayMigrationStrategy () {
13+ return flyway -> {
14+ flyway .repair ();
15+ flyway .migrate ();
16+ };
17+ }
18+ }
Original file line number Diff line number Diff line change 1- ALTER TABLE users ADD COLUMN role VARCHAR (20 ) NOT NULL DEFAULT ' USER' ;
1+ ALTER TABLE users ADD COLUMN IF NOT EXISTS role VARCHAR (20 ) NOT NULL DEFAULT ' USER' ;
You canโt perform that action at this time.
0 commit comments