move migration squashing suggestion limit to 15

This commit is contained in:
2024-11-09 21:30:09 -06:00
parent 93a6dd5972
commit 126d6b4757

View File

@@ -178,9 +178,10 @@ def main(*args: str) -> None:
else: else:
logger.info("No database changes detected.") logger.info("No database changes detected.")
if len(current) > 5: migration_limit: int = 15
if len(current) > migration_limit:
if questionary.confirm( if questionary.confirm(
"There are more than 5 migrations applied. Do you want to merge them?", f"There are more than {migration_limit} migrations applied. Do you want to merge them?",
default=False, default=False,
).ask(): ).ask():
logger.info("Merging migrations...") logger.info("Merging migrations...")