mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 15:47:20 +00:00
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:
parent
357fb7210a
commit
69a62e0906
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue