feat(server): grandfather existing cloud instances onto Professional

This commit is contained in:
2026-07-24 15:26:26 +01:00
parent 8626898e5e
commit 09a39090c6
2 changed files with 109 additions and 0 deletions
+7
View File
@@ -59,6 +59,13 @@ func main() {
log.Fatalf("scoped collection check failed: %v", assertErr)
}
gfCtx, gfCancel := context.WithTimeout(context.Background(), 2*time.Minute)
gfErr := services.MigrateGrandfatherLicences(gfCtx, db.Database)
gfCancel()
if gfErr != nil {
log.Fatalf("licence grandfather migration failed: %v", gfErr)
}
if err := services.EnsureAuthIndexes(); err != nil {
log.Fatalf("failed to ensure auth indexes: %v", err)
}