refactor: 改完jpa前,保留flayway

This commit is contained in:
taojinlong
2025-05-08 11:46:41 +08:00
parent 12343b3d8a
commit 9809afa344
5 changed files with 12 additions and 7 deletions

View File

@@ -49,7 +49,6 @@ public class DeStandaloneVersion {
private String installedBy;
@NotNull
@ColumnDefault("CURRENT_TIMESTAMP")
@Column(name = "installed_on", nullable = false)
private Instant installedOn;

View File

@@ -14,7 +14,7 @@ spring:
messages:
basename: i18n/core
flyway:
enabled: false
enabled: true
table: de_desktop_version
validate-on-migrate: false
locations: classpath:db/desktop

View File

@@ -5,10 +5,13 @@ spring:
password: 123456
messages:
basename: i18n/lic,i18n/core,i18n/permissions,i18n/xpack,i18n/sync
flyway:
enabled: false
enabled: true
table: de_standalone_version
validate-on-migrate: false
locations: classpath:db/migration
baseline-on-migrate: true
out-of-order: true
jpa:
properties:
hibernate:

View File

@@ -28,7 +28,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>