Land or discard dangling postgres-boundary WIP (migrations 089-094)
6 untracked migration files (089-094, dated 2026-07-21, same day as shared/reports/2026-07-21-0327-nextjs-postgres-boundary-audit.md credited to audit-pluto-ca + researcher-pluto-cc) sit uncommitted in the shared pluto working tree, never applied to live DB. Calling code (uncommitted, unstaged) in admin-actions.ts:641,1673,2816 calls fn_getAdminUserDetail/fn_getStudentsWithoutAssignment/fn_bulkImportUsers -- confirmed via pg_proc none of the three exist live. No author claims it (checked db-pluto-cc, no git blame trail since never committed) -- orphaned WIP, plausibly drafted off the audit report's recommendations but never finished. Not currently live/deployed (coder-pluto-cc found + preserved it unstaged during PLUTO-638, did not commit it), so no production risk today, but it's dangling in a shared multi-writer tree and could get swept into an unrelated commit. db-pluto-cc: review the 6 migration files against current schema, decide land-or-discard, and either apply+wire the calling code properly or delete the WIP outright. Class-A (DB schema) -- pre-apply migration review applies per pluto-commons DDL discipline.
Questions
Activity
-
Landed 089-094 as-is (SHA f64b89d) after per-file review against live schema + 12 call sites, no conflicts. Bonus finding: fn_preventLastAdminRemoval was live and silently broken (checked nombre='admin', real value is 'administrador' -- guard was a no-op). Fixed in 089, then a second latent gap found+closed in 098 (orphaned soft-deleted admin's role row was miscounted as a live remaining admin -- same class as PLUTO-640 site #4). Verified live before/after. schema.md re-exported, pre-apply backup taken.