add notes [CI SKIP]
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / End-to-End (push) Has been cancelled
CI / Publish Docker (push) Has been cancelled

This commit is contained in:
2024-09-30 21:39:04 +10:00
parent f28fed831a
commit 3bc7f922d3
2 changed files with 9 additions and 25 deletions

View File

@@ -1,25 +0,0 @@
-- name: GetAuthor :one
SELECT * FROM authors
WHERE id = ? LIMIT 1;
-- name: ListAuthors :many
SELECT * FROM authors
ORDER BY name;
-- name: CreateAuthor :one
INSERT INTO authors (
name, bio
) VALUES (
?, ?
)
RETURNING *;
-- name: UpdateAuthor :exec
UPDATE authors
SET name = ?,
bio = ?
WHERE id = ?;
-- name: DeleteAuthor :exec
DELETE FROM authors
WHERE id = ?;

View File

@@ -104,6 +104,15 @@ func (h *Handler) VmModifyEvent(w http.ResponseWriter, r *http.Request) {
params.NewRam = sql.NullInt64{Int64: i, Valid: i > 0}
params.UpdateType = "reconfigure"
}
case "config.managedBy":
// This changes when a VM becomes a placeholder or vice versa
// map[newValue:(extensionKey = \"com.vmware.vcDr\", type = \"placeholderVm\") type:config.managedBy]
// map[newValue:\"testVm\" type:config.managedBy.type]
// [map[newValue:\"placeholderVm\" type:config.managedBy.type]
// map[newValue:<unset> type:config.managedBy]
// TODO - track when this happens, maybe need a new database column?
}
// Check if a disk was added (or maybe removed?)