mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
Add reason
field for workspace builds (#2438)
* add reason field for workspace build * add the reason field to FE via API * update BuildReasonMember to BuildReasonInitiator * add unit tests * add more unit tests * add error for unknown transition * fix lint * add documentation * fix unit tests * fix generated types * remove nested transaction * rename migration file
This commit is contained in:
@ -114,10 +114,11 @@ INSERT INTO
|
||||
initiator_id,
|
||||
job_id,
|
||||
provisioner_state,
|
||||
deadline
|
||||
deadline,
|
||||
reason
|
||||
)
|
||||
VALUES
|
||||
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING *;
|
||||
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING *;
|
||||
|
||||
-- name: UpdateWorkspaceBuildByID :exec
|
||||
UPDATE
|
||||
|
Reference in New Issue
Block a user