You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/database/migrations.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,10 @@ default, migrations will be named using a timestamp.
118
118
npm run payload migrate:create optional-name-here
119
119
```
120
120
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
+
121
125
### Status
122
126
123
127
The `migrate:status` command will check the status of migrations and output a table of which migrations have been run,
0 commit comments