refactor: 优化

This commit is contained in:
zhouhao
2025-09-30 14:45:09 +08:00
parent 2c6dce81ce
commit 99aafcf573
2 changed files with 6 additions and 3 deletions

View File

@@ -120,8 +120,11 @@ public class AutoDDLProcessor implements InitializingBean {
if (table == null) {
SqlRequest request = schema.findFeatureNow(CreateTableSqlBuilder.ID).build(metadata);
log.info("DDL SQL for {} \n{}", entity, request.toNativeSql());
schema.addTable(metadata);
}else {
table.merge(metadata);
}
schema.addTable(metadata);
}
}
}

View File

@@ -262,7 +262,7 @@
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<version>1.18.42</version>
</path>
</annotationProcessorPaths>
</configuration>
@@ -442,7 +442,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<version>1.18.42</version>
<scope>provided</scope>
</dependency>