Skip to content

Commit 99aafcf

Browse files
committed
refactor: 优化
1 parent 2c6dce8 commit 99aafcf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/configuration/AutoDDLProcessor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,11 @@ public void afterPropertiesSet() {
120120
if (table == null) {
121121
SqlRequest request = schema.findFeatureNow(CreateTableSqlBuilder.ID).build(metadata);
122122
log.info("DDL SQL for {} \n{}", entity, request.toNativeSql());
123+
schema.addTable(metadata);
124+
}else {
125+
table.merge(metadata);
123126
}
124-
schema.addTable(metadata);
127+
125128
}
126129
}
127130
}

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
<path>
263263
<groupId>org.projectlombok</groupId>
264264
<artifactId>lombok</artifactId>
265-
<version>1.18.30</version>
265+
<version>1.18.42</version>
266266
</path>
267267
</annotationProcessorPaths>
268268
</configuration>
@@ -442,7 +442,7 @@
442442
<dependency>
443443
<groupId>org.projectlombok</groupId>
444444
<artifactId>lombok</artifactId>
445-
<version>1.18.30</version>
445+
<version>1.18.42</version>
446446
<scope>provided</scope>
447447
</dependency>
448448

0 commit comments

Comments
 (0)