add MigrateDB func for a single source of truth

This commit is contained in:
Hamidreza Ghavami
2023-05-06 00:22:21 +04:30
parent 5e3c0d6ecc
commit b125f1835c
3 changed files with 12 additions and 5 deletions

View File

@@ -211,8 +211,7 @@ func migrateDb() {
log.Fatal(err)
}
fmt.Println("Start migrating database...")
inboundService.MigrationRequirements()
inboundService.RemoveOrphanedTraffics()
inboundService.MigrateDB()
fmt.Println("Migration done!")
}