mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-17 20:54:40 +03:00
add MigrateDB func for a single source of truth
This commit is contained in:
@@ -469,8 +469,7 @@ func (s *ServerService) ImportDB(file multipart.File) error {
|
||||
defer os.Rename(fallbackPath, config.GetDBPath())
|
||||
return common.NewErrorf("Error migrating db: %v", err)
|
||||
}
|
||||
s.inboundService.MigrationRequirements()
|
||||
s.inboundService.RemoveOrphanedTraffics()
|
||||
s.inboundService.MigrateDB()
|
||||
|
||||
// remove fallback file
|
||||
defer os.Remove(fallbackPath)
|
||||
|
||||
Reference in New Issue
Block a user