Private
Public Access
1
0

fix: reorder host insert before cert issuance, add migration for missing columns
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 4s
CI Pipeline / Clippy Lints (push) Successful in 53s
CI Pipeline / Rust Unit Tests (push) Successful in 1m12s
CI Pipeline / Security Audit (push) Successful in 3s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 15s
CI Pipeline / Build .deb & Release (push) Has been skipped

This commit is contained in:
2026-05-18 13:18:44 +00:00
parent 005718c38a
commit aabaa3a0d4
2 changed files with 32 additions and 28 deletions

View File

@ -0,0 +1,5 @@
-- Migration: 017_enrollment_host_columns
-- Add missing columns for enrollment support
ALTER TABLE hosts ADD COLUMN IF NOT EXISTS machine_id TEXT;
ALTER TABLE certificates ADD COLUMN IF NOT EXISTS ip_address INET;
ALTER TABLE certificates ADD COLUMN IF NOT EXISTS key_pem TEXT;