mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
chore: Invert delay_login_until_ready
, now login_before_ready
(#5893)
This commit is contained in:
committed by
GitHub
parent
8a5760a2fe
commit
981cac5e28
@ -0,0 +1,8 @@
|
||||
BEGIN;
|
||||
ALTER TABLE workspace_agents RENAME COLUMN login_before_ready TO delay_login_until_ready;
|
||||
ALTER TABLE workspace_agents ALTER COLUMN delay_login_until_ready SET DEFAULT false;
|
||||
|
||||
UPDATE workspace_agents SET delay_login_until_ready = NOT delay_login_until_ready;
|
||||
|
||||
COMMENT ON COLUMN workspace_agents.delay_login_until_ready IS 'If true, the agent will delay logins until it is ready (e.g. executing startup script has ended).';
|
||||
COMMIT;
|
@ -0,0 +1,8 @@
|
||||
BEGIN;
|
||||
ALTER TABLE workspace_agents RENAME COLUMN delay_login_until_ready TO login_before_ready;
|
||||
ALTER TABLE workspace_agents ALTER COLUMN login_before_ready SET DEFAULT true;
|
||||
|
||||
UPDATE workspace_agents SET login_before_ready = NOT login_before_ready;
|
||||
|
||||
COMMENT ON COLUMN workspace_agents.login_before_ready IS 'If true, the agent will not prevent login before it is ready (e.g. startup script is still executing).';
|
||||
COMMIT;
|
Reference in New Issue
Block a user