本文整理了Java中com.googlecode.flyway.core.Flyway.setTable()
方法的一些代码示例,展示了Flyway.setTable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flyway.setTable()
方法的具体详情如下:
包路径:com.googlecode.flyway.core.Flyway
类名称:Flyway
方法名:setTable
[英]Sets the name of the schema metadata table that will be used by Flyway.
By default (single-schema mode) the metadata table is placed in the default schema for the connection provided by the datasource.
When the flyway.schemas property is set (multi-schema mode), the metadata table is placed in the first schema of the list.
[中]设置Flyway将使用的架构元数据表的名称。
默认情况下(单模式模式),元数据表位于数据源提供的连接的默认模式中。
当飞机降落在跑道上时。如果设置了schemas属性(多模式),元数据表将放置在列表的第一个模式中。
代码示例来源:origin: com.googlecode.flyway/flyway-core
setTable(tableProp);
代码示例来源:origin: org.jabylon/db.migration
private void migrateDB(DataSource dataSource)
{
boolean dbExists = dbExists(dataSource);
Flyway flyway = new Flyway();
flyway.setDataSource(dataSource);
flyway.setTable("SCHEMA_VERSION");
// flyway.setInitOnMigrate(true);
if (!dbExists)
{
MigrationVersion migrationVersion = getLatestVersion(flyway);
if (migrationVersion != null)
flyway.setInitVersion(migrationVersion);
}
MigrationInfo current = flyway.info().current();
if (current == null)
flyway.init();
flyway.migrate();
}
代码示例来源:origin: com.googlecode.flyway/flyway-ant
flyway.setTable(tableValue);
内容来源于网络,如有侵权,请联系作者删除!