Commit c367b78f17

c367b78f17cf44375c4fb15ba8dc6668fa0d71e0

parent: 5d1843ee18

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-12 01:29 UTC

spec, wiki: fix a stale index signature and column alignment

The spec's snippets_owner index still read (owner_id, created_at); the
migration and everything built on it uses (owner_id, id). The owner
page's snippets link renders below the repository list, not beside its
heading. Realign the three snippet rows in Parity.org, one of which
had drifted a character wider than its neighbours.

Ref #195

Layout: unified · split

.gitbay/wiki/Parity.org +3 −3
@@ -192,9 +192,9 @@ always markdown.
192| release delete | yes | yes | yes | 192| release delete | yes | yes | yes |
193| release asset add | yes | no | n/a | 193| release asset add | yes | no | n/a |
194| release asset remove | yes | no | yes | 194| release asset remove | yes | no | yes |
195| snippet create, edit, delete| yes | yes | no | 195| snippet create, edit, delete | yes | yes | no |
196| snippet show, list | yes | yes | no | 196| snippet show, list | yes | yes | no |
197| snippet file set, get, remove| yes | yes | no | 197| snippet file set, get, remove | yes | yes | no |
198 198
199No row is web-only any more. Blame, file editing, log at a ref, 199No row is web-only any more. Blame, file editing, log at a ref,
200archive, the public listing and the wiki were all in that state — a 200archive, the public listing and the wiki were all in that state — a
docs/specs/2026-09-11-snippets-design.md +2 −2
@@ -69,7 +69,7 @@ CREATE TABLE snippets (
69 created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')), 69 created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')),
70 updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')) 70 updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now'))
71); 71);
72CREATE INDEX snippets_owner ON snippets(owner_id, created_at); 72CREATE INDEX snippets_owner ON snippets(owner_id, id);
73 73
74CREATE TABLE snippet_files ( 74CREATE TABLE snippet_files (
75 snippet_id INTEGER NOT NULL REFERENCES snippets(id) ON DELETE CASCADE, 75 snippet_id INTEGER NOT NULL REFERENCES snippets(id) ON DELETE CASCADE,
@@ -196,7 +196,7 @@ a description and visibility form, and delete. All POSTs go through
196returns to the page with the message and a missing snippet is the 404 196returns to the page with the message and a missing snippet is the 404
197page. 197page.
198 198
199The owner page shows a `snippets` link beside the repositories heading 199The owner page shows a `snippets` link below the repository list
200when the owner has a public snippet, or when the viewer is the owner. 200when the owner has a public snippet, or when the viewer is the owner.
201 201
202Templates: `snippets.html`, `snippet.html`, `snippetnew.html`. Stylesheet 202Templates: `snippets.html`, `snippet.html`, `snippetnew.html`. Stylesheet