Add hardware ingest flow and UI upload
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user