Add hardware ingest flow and UI upload

This commit is contained in:
2026-02-11 21:57:34 +03:00
parent 38ebe8cd2a
commit 66a3166276
14 changed files with 2222 additions and 111 deletions

View File

@@ -93,6 +93,8 @@ func applyMigrations(db *sql.DB) error {
filepath.Join("migrations", "0004_timeline", "up.sql"),
filepath.Join("migrations", "0005_tickets", "up.sql"),
filepath.Join("migrations", "0006_analytics", "up.sql"),
filepath.Join("migrations", "0007_hardware_ingest", "up.sql"),
filepath.Join("migrations", "0008_service_uniques", "up.sql"),
}
for _, path := range paths {
data, err := os.ReadFile(path)
@@ -127,6 +129,7 @@ func execStatements(db *sql.DB, sqlText string) error {
func cleanupRegistry(db *sql.DB) error {
statements := []string{
"DELETE FROM failure_events",
"DELETE FROM asset_firmware_states",
"DELETE FROM ticket_links",
"DELETE FROM tickets",
"DELETE FROM timeline_events",