Skip to content

migrations: add NUC-only 106/107 as 108/109 (resolve number collision) - #45

Open
DarrenZal wants to merge 1 commit into
regen-prodfrom
recover/migrations-renumber
Open

migrations: add NUC-only 106/107 as 108/109 (resolve number collision)#45
DarrenZal wants to merge 1 commit into
regen-prodfrom
recover/migrations-renumber

Conversation

@DarrenZal

Copy link
Copy Markdown
Contributor

Recovered from the NUC runtime snapshot (nuc-runtime@316f2e2).

These files existed only inside the NUC's .git. No MacBook clone had them (koi-processor-service, RegenAI/koi-processor, koi-processor-runtime all checked), and the newest tarball backup predated them by 2.5 months. Provenance: they were MacBook working-tree scratch, rsynced to the NUC by dobby/scripts/deploy.sh, then lost locally — see ~/.claude/plans/koi-infra-entity-type-hints-handoff.md:36, which lists several as "untracked scratch in the working tree (operator to triage — NOT committed)".

Purely additive: no existing file is modified, nothing is imported or wired up, no migration is applied. Merging changes no runtime behaviour.

The collision

The NUC carried 106_entity_notion_mappings.sql and 107_entity_visibility_scope.sql; regen-prod independently used those same numbers for different migrations (106_ingest_idempotency, 107_entity_closure). Renumbered to 108/109, verified free across all remote branches.

Apply nothing

migration state action
108_entity_notion_mappings objects already exist on both nodes (entity_notion_mappings, projection_checkpoints + 2 indexes) file only — run nothing
109_entity_visibility_scope applied on the MacBook only; not on the NUC do not apply — ACCESS EXCLUSIVE on a 280 MB / 12.8k-row table for CHECK validation, for a feature with zero readers

All applied/not-applied verdicts come from pg_tables/pg_indexes/information_schema probes, not the tracker tables — this repo has three of them (schema_migrations, koi_migrations, koi_schema_migrations) and they disagree with each other.

Recovered from the NUC runtime snapshot (nuc-runtime@316f2e2). These files existed ONLY in the NUC's .git — no MacBook clone had them, and the newest tarball backup predated them by 2.5 months. Additive: no existing file is modified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant