Skip to content

Commit 1cd56e6

Browse files
committed
fixup! feat: add single tailnet support to pgcoord
1 parent c954663 commit 1cd56e6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

coderd/database/migrations/000152_pg_coordinator_single_tailnet.down.sql

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
BEGIN;
22

3-
-- ALTER TABLE
4-
-- tailnet_clients
5-
-- ADD COLUMN
6-
-- agent_id uuid;
3+
ALTER TABLE
4+
tailnet_clients
5+
ADD COLUMN
6+
agent_id uuid;
77

88
UPDATE
99
tailnet_clients
1010
SET
1111
-- grab just the first agent_id, or default to an empty UUID.
1212
agent_id = COALESCE(agent_ids[0], '00000000-0000-0000-0000-000000000000'::uuid);
1313

14+
ALTER TABLE
15+
tailnet_clients
16+
ALTER COLUMN
17+
agent_id SET NOT NULL;
18+
1419
ALTER TABLE
1520
tailnet_clients
1621
DROP COLUMN

0 commit comments

Comments
 (0)