docs: Add migration timestamp guidance to @n8n/db AGENTS.md (no-changelog) (#28444)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Charlie Kolb 2026-04-14 12:40:42 +02:00 committed by GitHub
parent 357fb7210a
commit 69a62e0906
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,13 @@
Extra information specific to the `@n8n/db` package.
## Creating Migrations
Migration files are named `{TIMESTAMP}-{DescriptiveName}.ts`. The timestamp
must be the **exact** Unix millisecond timestamp at the time of creation — do
not round or fabricate a value. Use `Date.now()` in a Node REPL or
`date +%s%3N` in a shell (GNU `date`) to generate it.
## Migration DSL
### UUID Primary Keys