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
.gitbay/wiki/Parity.org +3 −3
@@ -192,9 +192,9 @@ always markdown.
192192| release delete | yes | yes | yes |
193193| release asset add | yes | no | n/a |
194194| release asset remove | yes | no | yes |
195| snippet create, edit, delete| yes | yes | no |
196| snippet show, list | yes | yes | no |
197| snippet file set, get, remove| yes | yes | no |
195| snippet create, edit, delete | yes | yes | no |
196| snippet show, list | yes | yes | no |
197| snippet file set, get, remove | yes | yes | no |
198198
199199No row is web-only any more. Blame, file editing, log at a ref,
200200archive, 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 (
6969 created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')),
7070 updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now'))
7171);
72CREATE INDEX snippets_owner ON snippets(owner_id, created_at);
72CREATE INDEX snippets_owner ON snippets(owner_id, id);
7373
7474CREATE TABLE snippet_files (
7575 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
196196returns to the page with the message and a missing snippet is the 404
197197page.
198198
199The owner page shows a `snippets` link beside the repositories heading
199The owner page shows a `snippets` link below the repository list
200200when the owner has a public snippet, or when the viewer is the owner.
201201
202202Templates: `snippets.html`, `snippet.html`, `snippetnew.html`. Stylesheet