Download this file
| 1 | -- team-members.md §3 rule 5: the day a membership began, coarsened to the |
| 2 | -- day (spec §3.3) as whole days since 1970-01-01 UTC. Nullable: every row |
| 3 | -- written before this migration holds NULL, and the Team page shows it with |
| 4 | -- no date. Written by directory.seed-team over the operator endpoint and by |
| 5 | -- the Team page's confirm; never updated, so it never bumps the roster epoch. |
| 6 | ALTER TABLE memberships ADD COLUMN added_at INTEGER CHECK(added_at IS NULL OR (typeof(added_at) = 'integer' AND added_at > 0)); |
| 7 | |