Skip to content
Myr

0007_project_descriptions.sql

This file

Path

apps/platform/migrations/0007_project_descriptions.sql

16 lines · 754 bytes · SQL

Last changed by

Merge redesign into mainoscabrielbefore adoptioncaedd21

History of this file

Take it

1-- Each listed project's description and count of landings, as a list last2-- read them from the README on the project's main and from the project's3-- record, kept by packages/project/src/projection-d1 (its tables.ts holds4-- this text). A cache: a row lost costs one read. Both move only by a5-- landing, so a row holds while its `landed_at` is the project's last6-- landing, and a list reads the project again once it is not.78CREATE TABLE project_descriptions (9  project TEXT PRIMARY KEY,10  -- the project's last landing when it was read (ISO 8601)11  landed_at TEXT NOT NULL,12  -- the README's first paragraph as plain text, absent when it has none13  description TEXT,14  -- how many landings the project's record kept15  landings INTEGER NOT NULL16);