Skip to content

fix(doctor): look for a SQLite database where the application would open it - #1402

Merged
geodro merged 2 commits into
mainfrom
fix/sqlite-path-relative-to-the-app-root
Aug 8, 2026
Merged

fix(doctor): look for a SQLite database where the application would open it#1402
geodro merged 2 commits into
mainfrom
fix/sqlite-path-relative-to-the-app-root

Conversation

@geodro

@geodro geodro commented Aug 8, 2026

Copy link
Copy Markdown
Member

A Drupal site serving fine was reported as having no database at all:

✗ Database
    SQLite database file is missing at sites/default/files/.ht.sqlite — create it and run migrations.

Its database is a 20 MB file at web/sites/default/files/.ht.sqlite. The check resolved the declared path against the project directory, and Drupal resolves it against the document root it runs from, so lerd looked one directory up from where the application opens it.

Laravel roots the same kind of path at the project, which is why no fixture caught this: a relative database path is relative to whatever the application calls its root, and the frameworks disagree.

Both roots are checked now, the project and the document root the definition declares, and a database found at either is the site's. A file missing from all of them is still the finding it always was, and an empty one still asks for migrations.

Found by running the doctor against a real Drupal site rather than a scratch project.

Closes #1392

…pen it

A Drupal site serving fine was reported as having no database at all. Its 20 MB file sits at web/sites/default/files/.ht.sqlite, and the check looked one directory up, because it resolved the declared path against the project while Drupal resolves it against the document root it runs from. Laravel roots the same kind of path at the project, so nothing in a fixture caught it and the frameworks simply disagree.

Both roots are checked now, and a database found at either is the site's. A file missing from all of them is still the finding it always was, and an empty one still asks for migrations.
@geodro
geodro requested a review from a team as a code owner August 8, 2026 07:21
@geodro
geodro merged commit 0bb3489 into main Aug 8, 2026
3 checks passed
@geodro
geodro deleted the fix/sqlite-path-relative-to-the-app-root branch August 8, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(doctor): the SQLite check reads Laravel's keys instead of resolving through the framework

1 participant