Merge branch 'master' of github.com:ebean-orm/ebean

This commit is contained in:
Rob Bygrave
2017-01-09 19:40:23 +13:00
3 changed files with 18 additions and 14 deletions
@@ -8,6 +8,8 @@ import io.ebean.config.dbplatform.DbType;
import io.ebean.config.dbplatform.IdType;
import io.ebean.dbmigration.ddlgeneration.platform.SqlServerDdl;
import java.sql.Types;
/**
* Microsoft SQL Server platform.
*/
@@ -32,6 +34,7 @@ public class SqlServerPlatform extends DatabasePlatform {
this.openQuote = "[";
this.closeQuote = "]";
booleanDbType = Types.INTEGER;
dbTypeMap.put(DbType.BOOLEAN, new DbPlatformType("bit default 0"));
dbTypeMap.put(DbType.INTEGER, new DbPlatformType("integer", false));
@@ -22,7 +22,7 @@ public class MigrationXmlWriter {
}
/**
* Write a Migration to a file as an xml document to the file.
* Write a Migration as a standalone XML document to a file.
*/
public void write(Migration migration, File file) {
@@ -30,6 +30,7 @@ public class MigrationXmlWriter {
FileWriter writer = new FileWriter(file);
writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n");
writer.write("<!DOCTYPE xml>\n");
if (comment != null) {
writer.write("<!-- ");
writer.write(comment);