This commit is contained in:
wea_ondara
2022-11-27 08:27:55 +01:00
parent 7407d673fb
commit e1203eb5f4
4 changed files with 8 additions and 27 deletions

View File

@@ -122,7 +122,6 @@ public class MigrationBuilderGenerator {
private String addForeignKeyOp(AddForeignKeyOperation op) {
imports.add(List.class);
imports.add(ForeignKeyConstraint.class);
imports.add(ForeignKeyConstraint.Action.class);
return "mb.addForeignKey(\"" + op.getName() + "\",\n"
+ " \"" + op.getTable() + "\",\n"
+ " List.of(" + op.getFields().stream().map(e -> "\"" + e + "\"").collect(Collectors.joining(", ")) + "),\n"