Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql:dump includes path to sqlite3 database file in result-file=auto filename #5010

Closed
bradbulger opened this issue Jan 12, 2022 · 0 comments
Closed

Comments

@bradbulger
Copy link

My site is running on an sqlite3 db file in ../database/.ht.sqlite (relative to the site root directory). SqlBase::dumpFile() is using the whole database name, including the path, to create the "auto" filename for sql:dump. That fails as a bad path.

If I add a line to set $database = basename($database) it works. That's hardly likely the right way to fix it, I'm sure.

System Configuration

Q A
Drush version? 11.0.0
Drupal version? 9.x
PHP version 7.4
OS? Mac & Linux

Additional information
Add any other context about the problem here.

weitzman added a commit to weitzman/drush that referenced this issue Jan 12, 2022
…n result-file=auto filename. Also uses in-memory sqlite during CI.
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

No branches or pull requests

1 participant