Merge pull request #1656 from gerbermichi/import2

swap import and migrate order (KEYCLOAK-1884)
This commit is contained in:
Stian Thorgersen 2015-10-06 12:05:59 +02:00
commit cc41a1fd78

View file

@ -83,12 +83,12 @@ public class KeycloakApplication extends Application {
classes.add(JsResource.class);
classes.add(WelcomeResource.class);
new ExportImportManager().checkExportImport(this.sessionFactory, context.getContextPath());
setupDefaultRealm(context.getContextPath());
importRealms(context);
migrateModel();
new ExportImportManager().checkExportImport(this.sessionFactory, context.getContextPath());
importRealms(context);
AdminRecovery.recover(sessionFactory);