mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-07 01:15:37 -06:00
move migration squashing suggestion limit to 15
This commit is contained in:
@@ -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...")
|
||||||
|
|||||||
Reference in New Issue
Block a user