mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: Remove unique index on auth tokens (#1120)
If a workspace is started multiple times, resources may not be invalidated. This means an auth token can be reused for a workspace. coderd closes old agent connections, so this is expected behavior, and the agent will reconnect properly.
This commit is contained in:
@ -80,7 +80,7 @@ CREATE TABLE workspace_agents (
|
||||
last_connected_at timestamptz,
|
||||
disconnected_at timestamptz,
|
||||
resource_id uuid NOT NULL REFERENCES workspace_resources (id) ON DELETE CASCADE,
|
||||
auth_token uuid NOT NULL UNIQUE,
|
||||
auth_token uuid NOT NULL,
|
||||
auth_instance_id varchar(64),
|
||||
architecture varchar(64) NOT NULL,
|
||||
environment_variables jsonb,
|
||||
|
Reference in New Issue
Block a user