fix: fcking activate account
ci-agent / build (push) Failing after 2m55s

This commit is contained in:
d3m0k1d
2026-04-04 20:39:48 +03:00
parent f8c413a498
commit d535831fc1
2 changed files with 13 additions and 7 deletions
+6 -1
View File
@@ -3,6 +3,7 @@ package storage
import (
"database/sql"
"fmt"
"log"
"strings"
_ "modernc.org/sqlite"
@@ -37,7 +38,11 @@ func Open(path string) (*sql.DB, error) {
}
// Migration: add is_active column if it doesn't exist
_, _ = db.Exec(AddIsActiveColumn)
if _, err := db.Exec(AddIsActiveColumn); err != nil {
log.Printf("[sqlite] WARNING: failed to add is_active column: %v", err)
} else {
log.Println("[sqlite] is_active column migration applied")
}
return db, nil
}