java.lang.Object
io.ebean.migration.MigrationRunner
Runs the DB migration typically on application start.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the migrations that would be applied if the migration is run.checkState(MigrationContext context) Return the migrations that would be applied if the migration is run.checkState(Connection connection) Return the migrations that would be applied if the migration is run.checkState(DataSource dataSource) Return the migrations that would be applied if the migration is run.voidrun()Run by creating a DB connection from driver, url, username defined in MigrationConfig.voidrun(MigrationContext context) Run the migrations if there are any that need running.voidrun(Connection connection) Run the migrations if there are any that need running.voidrun(DataSource dataSource) Run using the connection from the DataSource.
-
Field Details
-
migrationConfig
-
-
Constructor Details
-
MigrationRunner
-
-
Method Details
-
checkState
Return the migrations that would be applied if the migration is run. -
checkState
Return the migrations that would be applied if the migration is run. -
checkState
Return the migrations that would be applied if the migration is run. -
checkState
Return the migrations that would be applied if the migration is run. -
run
public void run()Run by creating a DB connection from driver, url, username defined in MigrationConfig. -
run
Run using the connection from the DataSource. -
run
Run the migrations if there are any that need running. -
run
Run the migrations if there are any that need running.
-