docs: document payload migrate:create flags (#11592)

Related discussion
https://github.com/payloadcms/payload/discussions/10978
This commit is contained in:
Sasha
2025-03-07 19:25:39 +02:00
committed by GitHub
parent e9afb367b5
commit 3de1636e92

View File

@@ -118,6 +118,10 @@ default, migrations will be named using a timestamp.
npm run payload migrate:create optional-name-here
```
Flags:
* `--skip-empty`: with Postgres, it skips the "no schema changes detected. Would you like to create a blank migration file?" prompt which can be useful for generating migration in CI.
* `--force-accept-warning`: accepts any command prompts, creates a blank migration even if there weren't any changes to the schema.
### Status
The `migrate:status` command will check the status of migrations and output a table of which migrations have been run,