Skip to content

Commit 3aa6a33

Browse files
committed
Fix
1 parent 4eec351 commit 3aa6a33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/flux/cli.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ async def _apply(
223223
) as runner:
224224
await _print_apply_report(runner=runner, n=n)
225225
if not auto_approve:
226-
Confirm("Apply these migrations?")
226+
if not Confirm("Apply these migrations?"):
227+
raise typer.Exit(1)
227228
await runner.apply_migrations(n=n)
228229

229230

@@ -262,7 +263,8 @@ async def _rollback(
262263
) as runner:
263264
await _print_rollback_report(runner=runner, n=n)
264265
if not auto_approve:
265-
Confirm("Undo these migrations?")
266+
if not Confirm("Undo these migrations?"):
267+
raise typer.Exit(1)
266268

267269
await runner.rollback_migrations(n=n)
268270

0 commit comments

Comments
 (0)