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
@@ -238,6 +254,20 @@ By default, the backup will take place at midnight every day.
238
254
*`user`: Defaults to `PG_USER` || `"postgres"`
239
255
*`password`: Defaults to `PG_PASS` || `""`
240
256
257
+
-`db:down`: Roll back the last migration, or down to a specific version.
258
+
*`db`: Defaults `PG_DB` || `"postgres"`
259
+
*`host`: Defaults to `PG_HOST` || `"localhost"`
260
+
*`port`: Defaults to `PG_PORT` || `5432`
261
+
*`user`: Defaults to `PG_USER` || `"postgres"`
262
+
*`password`: Defaults to `PG_PASS` || `""`
263
+
*`target`: Optional version (e.g. `20240101000000`). When supplied, rolls down repeatedly until the current version is `<= target`. Use `target=0` to revert all migrations.
264
+
265
+
-`db:redo`: Re-run the last migration (rolls back, then re-applies).
266
+
267
+
-`db:status`: Show migration status for each migration.
268
+
269
+
-`db:version`: Print the current database migration version.
270
+
241
271
-`db:clean`: Clean PostgreSQL Database by deleting old records.
0 commit comments