ALTER TABLE audit_event ADD COLUMN operation_id text, ADD COLUMN action text, ADD COLUMN outcome text CHECK (outcome IN ('succeeded', 'failed', 'unknown')), ADD COLUMN old_image_version text, ADD COLUMN new_image_version text; ALTER TABLE network_exit ADD COLUMN last_check_reason text; CREATE INDEX audit_event_operation_id_idx ON audit_event (operation_id) WHERE operation_id IS NOT NULL;