#910 - SQL Server update - refactor rename platform to SqlServerPlatform

This commit is contained in:
Rob Bygrave
2016-12-03 13:30:17 +13:00
parent a5945b1d5d
commit 5ce31b16d4
6 changed files with 18 additions and 25 deletions
@@ -1,7 +1,7 @@
package com.avaje.ebean.dbmigration.ddlgeneration.platform;
import com.avaje.ebean.config.dbplatform.H2Platform;
import com.avaje.ebean.config.dbplatform.MsSqlServer2005Platform;
import com.avaje.ebean.config.dbplatform.SqlServerPlatform;
import com.avaje.ebean.config.dbplatform.MySqlPlatform;
import com.avaje.ebean.config.dbplatform.OraclePlatform;
import com.avaje.ebean.config.dbplatform.PostgresPlatform;
@@ -17,7 +17,7 @@ public class PlatformDdl_AlterColumnTest {
PlatformDdl pgDdl = new PostgresPlatform().getPlatformDdl();
PlatformDdl mysqlDdl = new MySqlPlatform().getPlatformDdl();
PlatformDdl oraDdl = new OraclePlatform().getPlatformDdl();
PlatformDdl sqlServerDdl = new MsSqlServer2005Platform().getPlatformDdl();
PlatformDdl sqlServerDdl = new SqlServerPlatform().getPlatformDdl();
AlterColumn alterNotNull() {
AlterColumn alterColumn = new AlterColumn();
@@ -153,4 +153,4 @@ public class PlatformDdl_AlterColumnTest {
assertTrue(sql, sql.startsWith("-- alter"));
}
}
}
@@ -1,7 +1,7 @@
package com.avaje.ebean.dbmigration.ddlgeneration.platform;
import com.avaje.ebean.config.dbplatform.H2Platform;
import com.avaje.ebean.config.dbplatform.MsSqlServer2005Platform;
import com.avaje.ebean.config.dbplatform.SqlServerPlatform;
import com.avaje.ebean.config.dbplatform.MySqlPlatform;
import com.avaje.ebean.config.dbplatform.OraclePlatform;
import com.avaje.ebean.config.dbplatform.PostgresPlatform;
@@ -16,7 +16,7 @@ public class PlatformDdl_dropUniqueConstraintTest {
PlatformDdl pgDdl = new PostgresPlatform().getPlatformDdl();
PlatformDdl mysqlDdl = new MySqlPlatform().getPlatformDdl();
PlatformDdl oraDdl = new OraclePlatform().getPlatformDdl();
PlatformDdl sqlServerDdl = new MsSqlServer2005Platform().getPlatformDdl();
PlatformDdl sqlServerDdl = new SqlServerPlatform().getPlatformDdl();
@Test
public void test() throws Exception {
@@ -35,4 +35,4 @@ public class PlatformDdl_dropUniqueConstraintTest {
assertEquals("alter table mytab drop index uq_name", sql);
}
}
}