Files
recflare/apps/rooms/migrations/0005_rename_room.sql
T
2026-07-08 13:22:06 -04:00

7 lines
355 B
SQL

-- Rename the `rooms` table to `room`, matching the singular naming of the other
-- tables (`interaction`, `room_instance`). SQLite carries the generated columns
-- and the idx_rooms_* indexes over to the renamed table automatically, so this
-- is the whole change. SCHEMA_DDL in src/rooms-db.ts already creates `room`.
ALTER TABLE rooms RENAME TO room;