Accept applied/reverted/failed in device status reports
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
-- Last agent apply report per device. reported_generation keeps its meaning
|
||||
-- (last applied generation); these columns hold the latest report of any kind.
|
||||
ALTER TABLE devices
|
||||
ADD COLUMN status TEXT NOT NULL DEFAULT '' CHECK (status IN ('', 'applied', 'reverted', 'failed')),
|
||||
ADD COLUMN status_generation BIGINT NOT NULL DEFAULT 0,
|
||||
ADD COLUMN status_error TEXT NOT NULL DEFAULT '',
|
||||
ADD COLUMN status_at TIMESTAMPTZ;
|
||||
Reference in New Issue
Block a user