again some platform fixes

This commit is contained in:
Roland Praml
2022-02-03 13:46:14 +01:00
parent 575deb0f5a
commit fca9591d0c
20 changed files with 7 additions and 6 deletions
@@ -18,7 +18,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class DbMigrationTest extends BaseTestCase {
private void runScript(String scriptName) throws IOException {
URL url = getClass().getResource("/migrationtest/dbmigration/" + server().platform().base().name().toLowerCase() + "/" + scriptName);
URL url = getClass().getResource("/migrationtest/dbmigration/" + server().platform().name().toLowerCase() + "/" + scriptName);
assert url != null : scriptName + " not found";
server().script().run(url);
}
@@ -214,9 +214,9 @@ ebean.migrationtest.migration.run=false
ebean.migrationtest.migration.includeIndex=true
ebean.migrationtest.migration.generateInit=true
ebean.migrationtest.migration.generatePendingDrop=auto
ebean.migrationtest.migration.platforms=db2luw,h2,hsqldb,mysql,mysql55,postgres,oracle,sqlite,sqlserver17,hana
migration.migrationtest.db2luw.prefix=db2
migration.migrationtest.sqlserver17.prefix=sqlserver
ebean.migrationtest.migration.platforms=db2luw,h2,hsqldb,mysql,mysql55,postgres,oracle,sqlite,sqlserver17,hana
#migration.migrationtest.db2luw.prefix=db2
#migration.migrationtest.sqlserver17.prefix=sqlserver
# need to generate unique statements to prevent them from being filtered out as duplicates by the DdlRunner
@@ -244,5 +244,6 @@ ebean.db2-migration.ddl.generate=false
ebean.db2-migration.ddl.run=false
ebean.db2-migration.migration.run=true
ebean.db2-migration.databasePlatformName=db2luw
ebean.db2-migration.migration.migrationPath=migrationtest/dbmigration
ebean.db2-migration.migration.migrationInitPath=migrationtest/dbinit
# workaround for https://github.com/ebean-orm/ebean-migration/issues/102
ebean.db2-migration.migration.migrationPath=migrationtest/dbmigration/db2
ebean.db2-migration.migration.migrationInitPath=migrationtest/dbinit/db2