FenjuFu opened a new pull request, #862:
URL: https://github.com/apache/burr/pull/862

   ## What changed
   
   - remove the hard-coded `~/.burr_server/db.sqlite3` path from the S3 
initialization helper
   - create the parent directory for `settings.DB_PATH`
   - add a regression test using a custom nested database path and Tortoise 
configuration
   
   ## Why
   
   `settings.py` supports `BURR_SERVER_ROOT` and `BURR_DB_FILENAME`, but 
`initialize_db.py` independently hard-coded the default path. As a result, 
running the initializer could prepare a different database from the one the S3 
server was configured to use.
   
   This is intentionally scoped as a prerequisite to #524. It does not choose 
between Aerich migrations and schema generation as the supported production 
bootstrap, and it does not claim to resolve the deployment-documentation issue.
   
   ## Validation
   
   - `python -m pytest tests/tracking/test_s3_initialize_db.py -q` — 1 passed
   - Black 23.11.0 (`--line-length 100`)
   - isort 5.12.0
   - Flake8 6.1.0
   - `git diff --check`
   
   Contributed as a member of the iFLYTEK Astron community.
   
   Related to #524.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to