Rename migration

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-13 18:21:36 +04:00
parent 36062310be
commit 01ca89de4a
3 changed files with 4 additions and 28 deletions

View File

@@ -174,7 +174,9 @@ Each entity gets a unique `uint16` constant in `entity_type_reg.go`. **Never reu
## Migrations
Files in `pkg/coredata/migrations/` use timestamp naming: `YYYYMMDDTHHMMSSZ.sql` (UTC). One logical change per file.
- Files in `pkg/coredata/migrations/` .
- Run `date -u +"%Y%m%dT%H%M%SZ.sql"` to get the name of the new migration file.
- One logical change per file.
**No indexes by default.** Only add indexes when justified by observed query latency in production environments. Do not speculatively create indexes on new tables or columns. This rule does not apply to indexes that enforce constraints, such as unique indexes.