#2014 - IllegalArgumentException: No rule for io.ebeaninternal.dbmigration.migration.RenameColumn

This commit is contained in:
rob bygrave
2020-05-27 21:00:42 +12:00
parent 5e94c26094
commit f6f9511d2a
5 changed files with 53 additions and 2 deletions
@@ -154,6 +154,16 @@ public class ModelContainerTest {
container.applyChange(dropHistoryTable);
}
@Test
public void apply_renameColumn() {
ModelContainer container = new ModelContainer();
container.apply(mig("6.0__renameColumn.model.xml"), ver("6.0"));
final MTable table = container.getTable("document");
assertThat(table.getColumn("title")).isNotNull();
assertThat(table.getColumn("short_title")).isNull();
}
@Test
public void getSchemas() {