mirror of
https://github.com/n8n-io/n8n
synced 2026-04-19 13:05:54 +02: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user