mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 06:45:21 +00:00
DbMigrationTest ignore Yugabyte at this stage
This commit is contained in:
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
|
||||||
|
|||||||
Reference in new issue
Block a user