Skip to content

Commit

Permalink
0002064: NVARCHAR field is not mapped in MySQL DDL Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 11, 2014
1 parent d729a61 commit a787498
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -34,6 +34,7 @@
import org.jumpmind.db.alter.RemovePrimaryKeyChange;
import org.jumpmind.db.alter.TableChange;
import org.jumpmind.db.model.Column;
import org.jumpmind.db.model.ColumnTypes;
import org.jumpmind.db.model.Database;
import org.jumpmind.db.model.ForeignKey;
import org.jumpmind.db.model.Table;
Expand Down Expand Up @@ -88,6 +89,9 @@ public MySqlDdlBuilder() {
databaseInfo.addNativeTypeMapping(Types.TINYINT, "SMALLINT", Types.SMALLINT);
databaseInfo.addNativeTypeMapping("BOOLEAN", "BIT", "BIT");
databaseInfo.addNativeTypeMapping("DATALINK", "MEDIUMBLOB", "LONGVARBINARY");
databaseInfo.addNativeTypeMapping(ColumnTypes.NVARCHAR, "VARCHAR", Types.VARCHAR);
databaseInfo.addNativeTypeMapping(ColumnTypes.LONGNVARCHAR, "VARCHAR", Types.VARCHAR);
databaseInfo.addNativeTypeMapping(ColumnTypes.NCHAR, "CHAR", Types.CHAR);

databaseInfo.setDefaultSize(Types.CHAR, 254);
databaseInfo.setDefaultSize(Types.VARCHAR, 254);
Expand Down

0 comments on commit a787498

Please sign in to comment.