Files
coder/coderd/database/migrations/000412_tailnet_tables_unlogged.down.sql
T
Spike Curtis 7090a1e205 chore: renumber duplicate migration 000411 (#21720)
Fixes recent duplicate DB migration in #21607
2026-01-28 08:01:58 +04:00

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;