Files
rust-discovery/migrations/0048_proxmox_guest_links.sql
T
kevin_janssenandClaude Opus 5.5 70977df577
Rust development slice / linux (push) Failing after 15s
Validate Proxmox observations, evaluate scheduled backups and link VMs to their Proxmox host
linux.proxmox gets a strict validator and a 128 KiB scope budget. Device
details expose guests, backup jobs with ok/failed/missed/running status and
linked devices. Base snapshots reconcile unique guest MACs into
assets.hypervisor_asset_id with hypervisor_source='proxmox'; manual choices
are kept and can be handed back to automatic detection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:10:35 +01:00

11 lines
537 B
SQL

SET LOCAL lock_timeout = '3s';
SET LOCAL statement_timeout = '30s';
-- NULL: no automatic decision yet, 'proxmox': set from a Proxmox host's guest list,
-- 'manual': chosen by a person and never overwritten by automatic detection.
ALTER TABLE assets
ADD COLUMN hypervisor_source text,
ADD CONSTRAINT assets_hypervisor_source_check
CHECK (hypervisor_source IN ('manual','proxmox'));
UPDATE assets SET hypervisor_source='manual' WHERE hypervisor_asset_id IS NOT NULL;
GRANT UPDATE (hypervisor_source) ON assets TO rmm_app;