Made some fixes in wrong ddl generation

This commit is contained in:
Roland Praml committed 2022-01-27 15:58:44 +01:00
1 parent d8c2b3d583
commit 190b4ef588
6 files changed
+19 -14

No files matched your search

@@ -31,6 +31,9 @@ public class PlatformDdlBuilder {
case H2:
return new H2Ddl(platform);
case DB2:
case DB2LUW:
case DB2FORI:
case DB2ZOS:
return new DB2Ddl(platform);
case MARIADB:
return new MariaDbDdl(platform);
@@ -15,6 +15,8 @@ public class DB2Ddl extends PlatformDdl {
this.dropConstraintIfExists = "drop constraint";
this.dropIndexIfExists = "drop index ";
this.identitySuffix = " generated by default as identity";
this.columnSetNull = "drop not null";
this.columnSetType = "set data type ";
this.inlineUniqueWhenNullable = false;
}