fix(test): add 0057 migration to 18 hand-rolled test pools (LC-217 follow-up) #261
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/lc-217-migration-drift-test-pools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
LC-217 (PR #259) added
chat/0057_enclave_msg_rate_limit.sqland threaded the newenclaves.msg_rate_limit_burstcolumn through everySELECTindb::enclave. Production picks the migration up via the embeddedsqlx::migrate!macro; 18 test files that hand-roll their migration list viainclude_str!(...)did not.Surfaced post-merge:
cargo test --test db_custom_emojispanicked withno such column: msg_rate_limit_burst. CLAUDE.md Phase 24 category 2 documented this exact failure mode (LC-204 standing ticket).What ships
db_custom_emojis,db_scheduled,db_bookmarks,migration_enclaves,uploads_sweep,scale_mentions,db_enclave,db_dm_mute,db_pinned,db_notifications,db_uploads. One-line addition after0056_bridge_avatar_proxies.sql.push_dispatch,scheduled_dispatcher,routes_reconnect,routes_analytics,routes_uploads,admin_uploads. Same one-line addition with matching indent.db_private_rooms. Matching 5-linesqlx::raw_sql(...).expect("migration 56")block, continuing the file's off-by-one numbering convention.Test plan
cargo test --test db_custom_emojis --test db_private_roomsclean (the two files smoke-tested before the wider run).cargo test --testsworkspace-wide: 30+ binaries all green, nono such columnfailures.Provenance
This was an LC-217 AC gap. New test files should use
common::*_pool()(thesqlx::migrate!-backed helper) so migration drift never applies again; this PR only catches the existing hand-rolled set up to date.