#1340 - (test only change) Split SQL Server Platform into SqlServer16 and SqlServer17 (where 2017 which uses UTF8 types nvarchar etc and prefers Sequences).

Update DbMigrationGenerateTest ... for SqlServer17 platform
This commit is contained in:
Rob Bygrave
2018-03-08 18:37:36 +13:00
parent ef58954af5
commit 0cc87009d0
7 changed files with 1 additions and 556 deletions
@@ -4,9 +4,6 @@ import io.ebean.EbeanServer;
import io.ebean.EbeanServerFactory;
import io.ebean.annotation.Platform;
import io.ebean.config.ServerConfig;
import io.ebean.config.dbplatform.DatabasePlatform;
import io.ebean.config.dbplatform.IdType;
import io.ebean.config.dbplatform.sqlserver.SqlServer17Platform;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -54,11 +51,7 @@ public class DbMigrationGenerateTest {
migration.addPlatform(Platform.POSTGRES, "postgres");
migration.addPlatform(Platform.ORACLE, "oracle");
migration.addPlatform(Platform.SQLITE, "sqlite");
// we need sequence here, so that migration will work properly
DatabasePlatform sqlServer = new SqlServer17Platform();
sqlServer.getDbIdentity().setIdType(IdType.SEQUENCE);
migration.addDatabasePlatform(sqlServer, "sqlserver");
migration.addPlatform(Platform.SQLSERVER17, "sqlserver17");
ServerConfig config = new ServerConfig();
config.setName("migrationtest");