Append preconfigured database to dbMigration (#1291)

This commit is contained in:
Roland Praml authored and Rob Bygrave committed 2018-02-27 11:09:44 +13:00
1 parent bb418456e3
commit 83cf768369
3 files changed
+21 -1

No files matched your search

@@ -4,6 +4,9 @@ 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.SqlServerPlatform;
import org.junit.*;
import org.slf4j.Logger;
@@ -52,7 +55,11 @@ public class DbMigrationGenerateTest {
migration.addPlatform(Platform.POSTGRES, "postgres");
migration.addPlatform(Platform.ORACLE, "oracle");
migration.addPlatform(Platform.SQLITE, "sqlite");
migration.addPlatform(Platform.SQLSERVER, "sqlserver");
// we need sequence here, so that migration will work properly
DatabasePlatform sqlServer = new SqlServerPlatform();
sqlServer.getDbIdentity().setIdType(IdType.SEQUENCE);
migration.addDatabasePlatform(sqlServer, "sqlserver");
ServerConfig config = new ServerConfig();
config.setName("migrationtest");