Problem/Motivation

Vacuum from command line.

Proposed resolution

Do it.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

geek-merlin created an issue. See original summary.

geek-merlin’s picture

Version: 7.x-1.x-dev » 1.0.x-dev

yaslama made their first commit to this issue’s fork.

geek-merlin’s picture

Thanks @yaslama for the MR!

Looks good to me. Does it work for you?

One nit: If the connection is not sqlite, the command should print an error messge.

(And FTR: It would also be nice to print out file sizes before / after, but that can be done in a followup.)

yaslama’s picture

Thanks @geek-merlin for the review.
The command works for me and I added an error message when the db is not sqlite

geek-merlin’s picture

Status: Active » Reviewed & tested by the community

geek-merlin’s picture

Status: Reviewed & tested by the community » Fixed
Related issues: +#3284925: Report filesize in `drush sqlite:vacuum`

Merged and released. Added followup. Thanks a lot!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.