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
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:
5
migrations/017_enrollment_host_columns.sql
Normal file
5
migrations/017_enrollment_host_columns.sql
Normal 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;
|
||||
Reference in New Issue
Block a user