| 1 | # Releases |
| 2 | |
| 3 | What each release shipped, so **"the previous release's schema"** is a fact rather than |
| 4 | a guess. Every migration must be one the previous release's binary can run against — |
| 5 | the rule, and why, is in [`architecture.md`](architecture.md#migrations). |
| 6 | |
| 7 | Add a row when a release is cut, in the same commit that bumps `Cargo.toml`. |
| 8 | |
| 9 | |
| 10 | |
| 11 | | 0.1.0 | 2026-07-31 | `1111df1` | *(none — no `migrations/` directory yet)* | |
| 12 | | 0.2.0 | 2026-09-04 | `7fb0b5e` | `…093030_create_orgs` · `…093031_create_users` · `…093032_create_memberships` · `…093033_create_sessions` · `…093034_add_org_bio` · `…093035_create_repositories` · `20260828120000_create_tokens` · `20260829090000_add_repository_recency` | |
| 13 | | 0.3.0 | 2026-09-06 | `768d679` | *(none new — same set as 0.2.0)* | |
| 14 | | 0.4.0 | 2026-09-06 | `219c396` | `20260906120100_add_repository_import` · `…120200_create_issues` · `…120201_create_issue_comments` · `…120300_create_push_events` · `…120301_create_webhooks` · `…120302_create_webhook_deliveries` · `…120400_add_repository_archived` · `…140100_add_token_lifecycle` · `…140200_create_labels` · `…140201_create_issue_labels` · `…180100_create_pull_requests` · `…180101_create_pull_request_comments` · `…190000_create_pull_request_labels` | |
| 15 | | 0.5.0 | 2026-09-10 | *(this commit)* | `20260906120200_create_issues` · `20260908090500_create_password_resets` | |
| 16 | | 0.6.0 | 2026-09-20 | `c3543e3` | *(none new — same set as 0.5.0)* | |
| 17 | | 0.7.0 | 2026-09-26 | *(this commit)* | *(none new — same set as 0.5.0)* | |
| 18 | |
| 19 | The `…` stands for the leading `202609061` / `20260804` of the timestamp; the full file |
| 20 | names are in `migrations/`. |
| 21 | |
| 22 | 0.6.0 is the first release published from **`https://releases.steid.dev`** |
| 23 | ([decision 0009](decisions/0009-releases-from-releases-steid-dev.md)) and the first |
| 24 | version cloud-init can install headlessly. `Cargo.toml` and `install.sh` have said |
| 25 | 0.6.0 since the boot-time owner landed (2026-09-13); the release was not cut until the |
| 26 | host existed, so no artefact has ever carried 0.6.0 and the number is published as-is |
| 27 | rather than bumped. `jpgill.dev` still serves up to 0.5.0 at the old path and mirrors |
| 28 | 0.6.0 onwards. |
| 29 | |
| 30 | 0.7.0 is the control plane's three asks — `steid restore --replace`, |
| 31 | `install.sh --operator-token`, and `disk` on `/api/instance` — and is the upgrade target |
| 32 | the control plane's own upgrade step needs in order to have ever run against a box. |
| 33 | **It is cut here but not published**; publishing is the author's (`./deploy.sh --publish` |
| 34 | or `--publish-s3-only`), and until then nothing changes for anyone. |
| 35 | |
| 36 | ## Unreleased |
| 37 | |
| 38 | **0.8.0 adds one migration** — `20260927100000_create_instance_settings.sql`, the |
| 39 | single-row table holding `home_org_id`. It is an **expand** step and nothing else: a |
| 40 | `create table` plus the one `insert` that seeds the row, no column added to an existing |
| 41 | table, nothing dropped or renamed. The previous release's binary neither reads nor |
| 42 | writes it, and reads nothing it changes, so the old process can keep serving while the |
| 43 | new one migrates — which is the rule `architecture.md` states. |
| 44 | |
| 45 | Everything before it shipped with 0.5.0; 0.6.0 and 0.7.0 add none. |
| 46 | |
| 47 | ## Where the last release's set actually lives |
| 48 | |
| 49 | The **cumulative** file list of the newest released version is a `const` — |
| 50 | `RELEASED_0_4_0` in `src/infrastructure/database_compat_tests.rs`. That is what the |
| 51 | replay test reads, so it is the authoritative copy; a test asserts it is a prefix of |
| 52 | `migrations/` in timestamp order, which catches a typo and catches a migration |
| 53 | back-dated in front of a released one. |
| 54 | |
| 55 | The table above is the human record and must be updated to match. When a release is cut: |
| 56 | add its row, rename the `const` and replace its contents with the full cumulative list |
| 57 | at that tag. **0.6.0 and 0.7.0 are the exception that proves the rule** — neither shipped |
| 58 | a new migration, so the cumulative list is byte-for-byte 0.5.0's and the `const` keeps |
| 59 | that name rather than being renamed to say the same thing twice. |