Skip to content

Commit ae9903e

Browse files
authored
Fix: Skip model loading for migrate and rollback commands. (#888)
1 parent 065e96e commit ae9903e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlmesh/cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def cli(
4343
if ctx.invoked_subcommand == "init":
4444
ctx.obj = path
4545
return
46-
elif ctx.invoked_subcommand == "create_external_models":
46+
elif ctx.invoked_subcommand in ("create_external_models", "migrate", "rollback"):
4747
load = False
4848

4949
# Delegates the execution of the --help option to the corresponding subcommand

0 commit comments

Comments
 (0)