feat(dictionary): commit the hnc_lemma_words_<N> columns (missing dependency of #70/#72) #74

Merged
raisondetredev merged 1 commit from refs/pull/74/head into main 2026-07-02 01:28:02 +02:00
raisondetredev commented 2026-07-02 01:24:51 +02:00 (Migrated from codeberg.org)

Why

The 47 hnc_lemma_words_500 … 23500 boolean columns were applied to the live DB out-of-band and never committed. But #70 (repair add_dictionary_vocabulary, already merged) filters on them 21×, and #72 (frequency-ordering, open) does too. So main's migration tree is currently inconsistent — a from-scratch supabase db reset fails with column "hnc_lemma_words_500" does not exist.

What

Commits 202606291355_add_hnc_lemma_words_bulks.sql (the creating migration). Its timestamp sorts before the 20260701… RPC migrations, so on reset the columns exist before #70/#72 reference them — the tree becomes consistent again. No effect on the live DB (columns already there).

Merge order

Merge this before/with #72. After this + #72 + #73, the tree is: … → 202606291355 (columns) → #70 (repair) → #71 (hnc_rank) → #72 (ordering) → #73 (drop stray cols).

Note: the two divergent migrations (20260628120000, 202606291840) that rewrote the RPC against a non-existent schema are intentionally not committed — #70 supersedes them.

## Why The 47 `hnc_lemma_words_500 … 23500` boolean columns were applied to the live DB out-of-band and never committed. But **#70** (repair `add_dictionary_vocabulary`, already merged) filters on them 21×, and **#72** (frequency-ordering, open) does too. So `main`'s migration tree is currently inconsistent — a from-scratch `supabase db reset` fails with `column "hnc_lemma_words_500" does not exist`. ## What Commits `202606291355_add_hnc_lemma_words_bulks.sql` (the creating migration). Its timestamp sorts **before** the `20260701…` RPC migrations, so on reset the columns exist before #70/#72 reference them — the tree becomes consistent again. No effect on the live DB (columns already there). ## Merge order Merge this **before/with #72**. After this + #72 + #73, the tree is: … → `202606291355` (columns) → #70 (repair) → #71 (hnc_rank) → #72 (ordering) → #73 (drop stray cols). Note: the two divergent migrations (`20260628120000`, `202606291840`) that rewrote the RPC against a non-existent schema are intentionally **not** committed — #70 supersedes them.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
project-halkyon/halkyon-infra!74
No description provided.