add notes [CI SKIP]
This commit is contained in:
@@ -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 = ?;
|
|
@@ -104,6 +104,15 @@ func (h *Handler) VmModifyEvent(w http.ResponseWriter, r *http.Request) {
|
|||||||
params.NewRam = sql.NullInt64{Int64: i, Valid: i > 0}
|
params.NewRam = sql.NullInt64{Int64: i, Valid: i > 0}
|
||||||
params.UpdateType = "reconfigure"
|
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?)
|
// Check if a disk was added (or maybe removed?)
|
||||||
|
Reference in New Issue
Block a user