Files
solon/drizzle/0033_provision_heading_path.sql
Cato 933d8a7f78 law text: chapter headings held on the provisions under them; verify compares in order (#558)
- Provision.headingPath (jsonb heading_path, migration 0033, additive): tit1/tit2/tit3 of a
  gesetze.li page are attached to the articles under them, shown above the first one, and
  counted by law:text verify. A heading is still not a provision.
- verify: a gazette masthead table is page furniture (FURNITURE_TABLES), footnote marks and
  inline tags (CO<sub>2</sub>) are read as the reader reads them.
- verify: a sequence score (Myers diff over words) and the longest missing run next to the
  bag score; an act is word-for-word only when every page word is held in the page's order.

Fixtures: Kundmachung 2022308000, AIFMV and Waffengesetz excerpts.

Claude-Session: https://claude.ai/code/session_019MDtmt65Ai8jku68kDmxUU
2026-11-11 20:22:37 +01:00

4 lines
241 B
SQL

-- The chapter and section headings above a provision, outermost first. Additive: existing rows get
-- an empty path until their act is read again.
ALTER TABLE "legal_provisions" ADD COLUMN "heading_path" jsonb DEFAULT '[]'::jsonb NOT NULL;