Fix default database path for custom user directory#14539
Fix default database path for custom user directory#14539Constantine1916 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #14524
Summary
--database-urlbehavior and keepcomfy.cli_args.args.database_urlpopulated for compatibility.Notes
For users who did not explicitly pass
--database-urland use--user-directoryor--base-directory, the default DB location now follows the effective user directory. If an existing legacy install-directoryuser/comfyui.dbis present and the new target DB is missing, it is copied once to avoid appearing to lose existing asset data.Testing
.venv/bin/python -m pytest tests-unit/app_test/test_migrations.py tests-unit/app_test/database_path_test.py -q.venv/bin/python -m ruff check .