Class Migration
- java.lang.Object
-
- org.openmetadata.service.migration.Migration
-
public final class Migration extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<String>lastMigrated(org.jdbi.v3.core.Jdbi jdbi)Run a query to MySQL to retrieve the last migrated Flyway version.static Optional<String>lastMigratedServer(org.jdbi.v3.core.Jdbi jdbi)static StringlastMigrationFile(MigrationConfiguration conf)
-
-
-
Method Detail
-
lastMigrated
public static Optional<String> lastMigrated(org.jdbi.v3.core.Jdbi jdbi)
Run a query to MySQL to retrieve the last migrated Flyway version. If the Flyway table DATABASE_CHANGE_LOG does not exist, we will stop the Catalog App and inform users how to run Flyway.
-
lastMigrationFile
public static String lastMigrationFile(MigrationConfiguration conf) throws IOException
- Throws:
IOException
-
-