Renumber source remote migration
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
75af66b822ab4f520b633966b0016a28a5b16193- Parents
-
b6160a3 - Tree
19c382a
75af66b
75af66b822ab4f520b633966b0016a28a5b16193b6160a3
19c382a| Status | File | + | - |
|---|---|---|---|
| M |
docs/internal/repo-create.md
|
1 | 1 |
| R |
internal/migrationsfs/migrations/0051_repo_source_remotes.sql →
internal/migrationsfs/migrations/0052_repo_source_remotes.sql
|
0 | 0 |
docs/internal/repo-create.mdmodified@@ -5,7 +5,7 @@ S11 ships the create-a-repo flow end-to-end: a logged-in user clicks **New**, fi | ||
| 5 | 5 | ## What's wired |
| 6 | 6 | |
| 7 | 7 | - **Migration:** `0017_repos.sql` adds the `repos` table (with `repo_visibility` enum, owner XOR check, per-owner unique-by-name partial indexes, soft-delete column). |
| 8 | -- **Source remotes:** `0051_repo_source_remotes.sql` adds one optional public fetch URL per repo. Creation and settings can save this URL, fetch heads/tags, and use it later for submodule gitlink backfill. | |
| 8 | +- **Source remotes:** `0052_repo_source_remotes.sql` adds one optional public fetch URL per repo. Creation and settings can save this URL, fetch heads/tags, and use it later for submodule gitlink backfill. | |
| 9 | 9 | - **sqlc package:** `internal/repos/sqlc` (`reposdb`) — Create, Get-by-owner-and-name, Exists, List-by-owner, Count, SoftDelete, UpdateDiskUsed. |
| 10 | 10 | - `internal/repos/validate.go` — name shape (≤100 chars, `[a-z0-9._-]`, non-separator edges, no dot-dot, no leading dot) + reserved-name list. |
| 11 | 11 | - `internal/repos/templates/` — embeds 10 SPDX licenses + 10 .gitignore templates + a minimal README generator. Sourced from gitea's `options/license` and `options/gitignore` (originally github.com/github/gitignore, MIT/CC0). |
internal/migrationsfs/migrations/0051_repo_source_remotes.sql → internal/migrationsfs/migrations/0052_repo_source_remotes.sqlrenamed (100% similarity)