mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
Made some fixes in wrong ddl generation
This commit is contained in:
1 parent
d8c2b3d583
commit
190b4ef588
6 files changed
+19
-14
No files matched your search
+3
@@ -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);
|
||||
|
||||
+2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user