Skip to content

Commit 955b135

Browse files
committed
Clarify docs, fix omission
1 parent 5c07d0a commit 955b135

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ Options:
307307
[string] [default: .gmrc[.js|.cjs]]
308308
--shadow Apply migrations to the shadow DB (for development).
309309
[boolean] [default: false]
310-
--forceActions Run beforeAllMigrations and afterAllMigrations actions
311-
even if no migration was necessary.
312-
[boolean] [default: false]
310+
--forceActions Run beforeAllMigrations, afterAllMigrations,
311+
beforeCurrent, and afterCurrent actions even if no
312+
migration was necessary. [boolean] [default: false]
313313
```
314314

315315

src/commands/current.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function current(
1818
): Promise<void> {
1919
const { shadow = false, forceActions = false } = options;
2020
const parsedSettings = await parseSettings(settings, shadow);
21-
await _migrate(parsedSettings, shadow);
21+
await _migrate(parsedSettings, shadow, forceActions);
2222

2323
const currentLocation = await getCurrentMigrationLocation(parsedSettings);
2424
if (!currentLocation.exists) {
@@ -55,7 +55,7 @@ export const currentCommand: CommandModule<
5555
type: "boolean",
5656
default: false,
5757
description:
58-
"Run beforeAllMigrations and afterAllMigrations actions even if no migration was necessary.",
58+
"Run beforeAllMigrations, afterAllMigrations, beforeCurrent, and afterCurrent actions even if no migration was necessary.",
5959
},
6060
},
6161
handler: async (argv) => {

0 commit comments

Comments
 (0)