#1941 - @History it seems does not work well when it got generated with ebean.allQuotedIdentifiers enabled

This commit is contained in:
rob bygrave
2020-02-20 16:51:07 +13:00
parent ef5ea59559
commit c0d752b445
2 changed files with 26 additions and 6 deletions
@@ -0,0 +1,17 @@
package io.ebeaninternal.dbmigration.ddlgeneration.platform;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class SqlServerHistoryDdlTest {
@Test
public void getHistoryTable() {
SqlServerHistoryDdl ddl = new SqlServerHistoryDdl();
assertThat(ddl.getHistoryTable("foo")).isEqualTo("dbo.foo_history");
assertThat(ddl.getHistoryTable("bar.foo")).isEqualTo("bar.foo_history");
assertThat(ddl.getHistoryTable("[Foo]")).isEqualTo("dbo.[Foo_history]");
}
}