mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-10 15:35:59 +01:00
Bugfix for new installation
This commit is contained in:
@@ -72,6 +72,11 @@ class InitializeListener extends ServletContextListener with SystemSettingsServi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Run normal migration
|
||||||
|
logger.info("Start schema update")
|
||||||
|
val solidbase = new Solidbase()
|
||||||
|
solidbase.migrate(conn, Thread.currentThread.getContextClassLoader, DatabaseConfig.liquiDriver, GitBucketCoreModule)
|
||||||
|
|
||||||
// Rescue code for users who updated from 3.14 to 4.0.0
|
// Rescue code for users who updated from 3.14 to 4.0.0
|
||||||
// https://github.com/gitbucket/gitbucket/issues/1227
|
// https://github.com/gitbucket/gitbucket/issues/1227
|
||||||
val currentVersion = manager.getCurrentVersion(GitBucketCoreModule.getModuleId)
|
val currentVersion = manager.getCurrentVersion(GitBucketCoreModule.getModuleId)
|
||||||
@@ -79,11 +84,6 @@ class InitializeListener extends ServletContextListener with SystemSettingsServi
|
|||||||
manager.updateVersion(GitBucketCoreModule.getModuleId, "4.0.0")
|
manager.updateVersion(GitBucketCoreModule.getModuleId, "4.0.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run normal migration
|
|
||||||
logger.info("Start schema update")
|
|
||||||
val solidbase = new Solidbase()
|
|
||||||
solidbase.migrate(conn, Thread.currentThread.getContextClassLoader, DatabaseConfig.liquiDriver, GitBucketCoreModule)
|
|
||||||
|
|
||||||
// Load plugins
|
// Load plugins
|
||||||
logger.info("Initialize plugins")
|
logger.info("Initialize plugins")
|
||||||
PluginRegistry.initialize(event.getServletContext, loadSystemSettings(), conn)
|
PluginRegistry.initialize(event.getServletContext, loadSystemSettings(), conn)
|
||||||
|
|||||||
Reference in New Issue
Block a user