mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
7090a1e205
Fixes recent duplicate DB migration in #21607
11 lines
410 B
SQL
11 lines
410 B
SQL
-- Revert tailnet tables to LOGGED (standard WAL-enabled tables).
|
|
-- WARNING: This requires a full table rewrite with WAL generation,
|
|
-- which can be slow for large tables.
|
|
|
|
-- Convert parent table first (before children, reverse of up migration).
|
|
ALTER TABLE tailnet_coordinators SET LOGGED;
|
|
|
|
-- Convert child tables after parent.
|
|
ALTER TABLE tailnet_peers SET LOGGED;
|
|
ALTER TABLE tailnet_tunnels SET LOGGED;
|