mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
* Added automatic_updates to workspaces table Signed-off-by: Spike Curtis <spike@coder.com> * Queries and API updates Signed-off-by: Spike Curtis <spike@coder.com> * Golden files Signed-off-by: Spike Curtis <spike@coder.com> * Enable automatic updates on autostart Signed-off-by: Spike Curtis <spike@coder.com> * db migration number Signed-off-by: Spike Curtis <spike@coder.com> * fix imports and ts mock Signed-off-by: Spike Curtis <spike@coder.com> * code review updates Signed-off-by: Spike Curtis <spike@coder.com> --------- Signed-off-by: Spike Curtis <spike@coder.com>
9 lines
306 B
PL/PgSQL
9 lines
306 B
PL/PgSQL
BEGIN;
|
|
-- making this an enum in case we want to later add other options, like 'if_compatible_vars'
|
|
CREATE TYPE automatic_updates AS ENUM (
|
|
'always',
|
|
'never'
|
|
);
|
|
ALTER TABLE workspaces ADD COLUMN IF NOT EXISTS automatic_updates automatic_updates NOT NULL DEFAULT 'never'::automatic_updates;
|
|
COMMIT;
|