DbMigrationTest ignore Yugabyte at this stage

This commit is contained in:
Rob Bygrave committed 2022-03-01 21:29:17 +13:00
1 parent ed19a96801
commit e8df81d78a
1 file changed
+8
@@ -1,6 +1,8 @@
package io.ebeaninternal.dbmigration; package io.ebeaninternal.dbmigration;
import io.ebean.*; import io.ebean.*;
import io.ebean.annotation.IgnorePlatform;
import io.ebean.annotation.Platform;
import io.ebean.config.DatabaseConfig; import io.ebean.config.DatabaseConfig;
import io.ebean.config.dbplatform.DbHistorySupport; import io.ebean.config.dbplatform.DbHistorySupport;
import io.ebean.datasource.pool.ConnectionPool; import io.ebean.datasource.pool.ConnectionPool;
@@ -45,6 +47,12 @@ public class DbMigrationTest extends BaseTestCase {
assertThat(LastMigration.nextVersion(d, null, true)).isEqualTo("1.4"); assertThat(LastMigration.nextVersion(d, null, true)).isEqualTo("1.4");
} }
@IgnorePlatform({
// Yugabyte does not see column updates on table alters:
// update table T set C = 'value'; alter table T alter column C set not null -> error column C has null values
// do we need a commit after update?
Platform.YUGABYTE,
})
@Test @Test
public void testRunMigration() throws IOException, SQLException { public void testRunMigration() throws IOException, SQLException {
// Shutdown and reconnect - this prevents postgres from lock up // Shutdown and reconnect - this prevents postgres from lock up