Skip to content

Commit 3de1636

Browse files
authored
docs: document payload migrate:create flags (#11592)
Related discussion #10978
1 parent e9afb36 commit 3de1636

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: docs/database/migrations.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ default, migrations will be named using a timestamp.
118118
npm run payload migrate:create optional-name-here
119119
```
120120

121+
Flags:
122+
* `--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.
123+
* `--force-accept-warning`: accepts any command prompts, creates a blank migration even if there weren't any changes to the schema.
124+
121125
### Status
122126

123127
The `migrate:status` command will check the status of migrations and output a table of which migrations have been run,

0 commit comments

Comments
 (0)