mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
* 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
5 lines
187 B
SQL
5 lines
187 B
SQL
CREATE TYPE build_reason AS ENUM ('initiator', 'autostart', 'autostop');
|
|
|
|
ALTER TABLE ONLY workspace_builds
|
|
ADD COLUMN IF NOT EXISTS reason build_reason NOT NULL DEFAULT 'initiator';
|