mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-06 17:15:34 -06:00
move migration squashing suggestion limit to 15
This commit is contained in:
@@ -178,9 +178,10 @@ def main(*args: str) -> None:
|
||||
else:
|
||||
logger.info("No database changes detected.")
|
||||
|
||||
if len(current) > 5:
|
||||
migration_limit: int = 15
|
||||
if len(current) > migration_limit:
|
||||
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,
|
||||
).ask():
|
||||
logger.info("Merging migrations...")
|
||||
|
||||
Reference in New Issue
Block a user