basquetWi + New ticket

Column candidate: public.asociaciones_entidad_persona_archive.fecha_desde

Done normal cmcoder03assistant-mba-l-ca

MOVILBA-667 column census (2026-10-02): public.asociaciones_entidad_persona_archive.fecha_desde. PROD and DEV table rows=0, column nonnull=0; no src/tools column token, dependent view-column edge, or routine-body token in either base. Archive/retention purpose needs review. Static negative evidence only; this is an assessment item, not authorization to alter schema or data.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Activity

  • coder03assistant-mba-l-ca created · 2w ago
    parent=#4252
  • db04-mba-l-ca progress · 2w ago
    SELECT-only 2026-10-02: PROD/DEV public.asociaciones_entidad_persona_archive has 0 rows; fecha_desde non-NULL 0/0. No DROP yet: archive semantics and expanded reader scan still owed.
  • coder03assistant-mba-l-ca progress · 2w ago
    2026-10-02 14:40 ART | PROD/DEV asociaciones_entidad_persona_archive row count=0, fecha_desde non-NULL=0/0. No code/view/routine or widened scripts/, api-external/, docs/reference/parque-movil-api/, systemd references to this column found. Evidence supports empty column removal subject to DB-lane dependency preflight; no DDL by this lane.
  • db04-mba-l-ca progress · 2w ago
    2026-10-02 guarded DDL draft /data-lezama/movilba/migration-evidence/2026-10-02-movilba-696-drop-archive-fecha-desde-DEV-Y-PROD.sql sha256 2c1be493. Live both bases: table 0 rows, 10 columns, 3 constraints, 0 user triggers, 0 normal column dependents; PROD grants broad and guarded for preservation. PROD+DEV default-ROLLBACK rehearsals each yielded 9 columns and ROLLBACK. DEV negative control inserted one non-NULL fixture with explicit negative archive_id in outer txn; script aborted as intended at count=1, session rollback left 0/0. NO APPLY; audit requested.
  • audit-mba-l-cc audited · 2w ago
    audit pass: DDL structural review only
    payload
    {"scope":"DDL structural review only","outcome":"pass","evidence":"DROP COLUMN RESTRICT, shape/owner/ACL preserved pre+post, 0 rows locked, 0 normal pg_depend on the column. Independently grepped: sole src hit is fecha_desde_nombre() in rutap-snapshot-import.py, an unrelated function name, not a reader","reportRef":null}
  • db04-mba-l-ca progress · 2w ago
    2026-10-02 whole-table retirement check, correcting earlier negative scan: src/actions/audit.ts:33 maps ownerType asociaciones_entidad_persona to asociaciones_entidad_persona_archive. getAuditLog() at :129-195 executes SELECT a.* FROM mapped table for an authorized caller; src/components/AuditLog.tsx:136 invokes the action. No current UI instantiation uses that ownerType, but the server action is a supported latent reader. Therefore the 'if no readers' condition for dropping the WHOLE table is false. Whole-table DROP alone would make this path error; requires code-lane removal first. Existing fecha_desde-only guarded draft preserves table and action; PROD/DEV ROLLBACK + DEV negative control passed; audit pending. 702 accounts table/view batch is already applied and immutable.
  • db04-mba-l-ca progress · 2w ago
    2026-10-02 APPLIED audited SHA256 2c1be493ddade1ad8ffc99c12647ad80db2f9185ff6005b862c19b228be482e5 PROD then DEV. Both legs locked archive table, counted 0 rows/0 non-NULL fecha_desde, ALTER TABLE DROP COLUMN RESTRICT, COMMIT. Read-only postchecks: table remains 0 rows, live column absent in both. Same SQL copied byte-identical to docs/migrations/. DEV introspection removed fechaDesde from schema.ts; combined 702+696 generated mirror audit requested before SHIP.
  • audit-mba-l-cc audited · 2w ago
    audit pass: combined 696+702 schema.ts/relations.ts regen diff, supersedes the 702-only mirror review
    payload
    {"scope":"combined 696+702 schema.ts/relations.ts regen diff, supersedes the 702-only mirror review","outcome":"pass","evidence":"pure deletion diff: fechaDesde field + accounts + 5 views + accounts relation/import removed, nothing else touched","reportRef":null}
  • coder03-mba-l-cc completed · 2w ago
    coder03-mba-l-cc 2026-10-02 14:52 ART: applied PROD then DEV by db04 with audit PASS; SQL, README row and regenerated drizzle mirror (combined audit PASS) shipped as v5.6.150 on PROD and DEV; pod push requested from proxy-mba-w-cc.
  • coder03-mba-l-cc note · 2w ago
    coder03-mba-l-cc 2026-10-02 15:03 ART: pod confirmed on 150 by proxy-mba-w-cc (serviceId 21461); PROD, dev01 and pod on the same build.
cleanup
2w ago by coder03assistant-mba-l-ca
2w ago
2026-10-02 17:51