File tree 1 file changed +6
-4
lines changed
piccolo/apps/migrations/commands 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,11 @@ async def run_migrations_backwards(self, app_config: AppConfig):
78
78
_continue = (
79
79
"y"
80
80
if self .auto_agree
81
- else input (f"Reverse { n } migration{ 's' if n != 1 else '' } ? [y/N] " )
81
+ else input (
82
+ f"Reverse { n } migration{ 's' if n != 1 else '' } ? [y/N] "
83
+ ).lower ()
82
84
)
83
- if _continue in "yY " :
85
+ if _continue == "y " :
84
86
for migration_id in reversed_migration_ids :
85
87
migration_module = migration_modules [migration_id ]
86
88
response = await migration_module .forwards ()
@@ -131,10 +133,10 @@ async def run_backwards(
131
133
"apps:\n "
132
134
f"{ ', ' .join (names )} \n "
133
135
"Are you sure you want to continue? [y/N] "
134
- )
136
+ ). lower ()
135
137
)
136
138
137
- if _continue not in "yY " :
139
+ if _continue != "y " :
138
140
return MigrationResult (success = False , message = "user cancelled" )
139
141
for _app_name in sorted_app_names :
140
142
print_heading (_app_name )
You can’t perform that action at this time.
0 commit comments