Skip to content

Fix broken TOC anchor on the pg relations-v1-v2 page - #702

Open
alexandrosang21 wants to merge 1 commit into
drizzle-team:mainfrom
alexandrosang21:fix/pg-relations-v1-v2-toc-anchor
Open

Fix broken TOC anchor on the pg relations-v1-v2 page#702
alexandrosang21 wants to merge 1 commit into
drizzle-team:mainfrom
alexandrosang21:fix/pg-relations-v1-v2-toc-anchor

Conversation

@alexandrosang21

@alexandrosang21 alexandrosang21 commented Jul 29, 2026

Copy link
Copy Markdown

The table of contents on the Postgres Migrating to Relational Queries version 2 page has
one entry that links to an anchor which doesn't exist, so clicking it does nothing:

- [How to migrate relations definition from v1 to v2](#how-to-migrate-relations-schema-definition-from-v1-to)
+ [How to migrate relations definition from v1 to v2](#how-to-migrate-relations-schema-definition-from-v1-to-v2)

The heading it should reach is How to migrate relations schema definition from v1 to v2.

The same page exists for four dialects with identical heading text, and the other three already
link to it correctly. pg was the only one missing the trailing -v2:

dialect TOC anchor
mysql ...-from-v1-to-v2
sqlite ...-from-v1-to-v2
singlestore ...-from-v1-to-v2
pg (before) ...-from-v1-to

Checking every in-page anchor against every heading across all four files, pg was the only
broken one, and it is the only line changed here.

Noticed via drizzle-team/drizzle-orm#5738, which reports a broken link on this page. That issue
points at the New features in v2 entry, which resolves to the What is new? heading and looks
fine. The entry directly beneath it was genuinely broken, so it is likely what was actually hit.

@alexandrosang21
alexandrosang21 force-pushed the fix/pg-relations-v1-v2-toc-anchor branch from f98f2f4 to 019c4d6 Compare July 29, 2026 12:25
The 'How to migrate relations definition from v1 to v2' entry linked to
#how-to-migrate-relations-schema-definition-from-v1-to, which matches no
heading on the page, so clicking it did nothing.

The heading is 'How to migrate relations schema definition from v1 to v2'
and the mysql, sqlite and singlestore copies of the same page already
link to it with the trailing -v2. pg was the only one missing it.
@alexandrosang21
alexandrosang21 force-pushed the fix/pg-relations-v1-v2-toc-anchor branch from 019c4d6 to be8e86b Compare July 29, 2026 12:48
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