mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 06:45:21 +00:00
Migration is a plugin now
This commit is contained in:
1 parent
a0d56529a1
commit
f045d5e1b0
7 files changed
+36
-475
No files matched your search
+3
-1
@@ -43,6 +43,8 @@ public class DbRunMigrationPlugin implements Plugin {
|
||||
|
||||
@Override
|
||||
public void start() {
|
||||
migrationRunner.run(server.dataSource());
|
||||
if (migrationRunner != null) {
|
||||
migrationRunner.run(server.dataSource());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
open module io.ebean.dbmigration.runner {
|
||||
|
||||
provides io.ebean.plugin.Plugin with io.ebeaninternal.dbmigration.run.DbRunMigrationPlugin;
|
||||
|
||||
requires transitive io.ebean.ddl.runner;
|
||||
requires transitive io.ebean.core;
|
||||
requires transitive java.xml.bind;
|
||||
requires io.ebean.core.type;
|
||||
requires io.ebean.migration;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user