Skip to content

fix: vacuum#128

Merged
KyleTryon merged 1 commit intomainfrom
fix/vacuum
Jan 8, 2026
Merged

fix: vacuum#128
KyleTryon merged 1 commit intomainfrom
fix/vacuum

Conversation

@KyleTryon
Copy link
Contributor

This pull request updates the database wipe script to address SQLite's handling of the VACUUM command. The script now includes comments explaining why the VACUUM command is omitted, clarifying that SQLite will reclaim space automatically over time.

  • Database maintenance clarification:
    • Removed the VACUUM; command from wipe-staging.sql and added comments explaining that VACUUM cannot run inside a transaction due to SQLite limitations, and that space will be reclaimed automatically.

VACUUM cannot be executed inside a transaction, and Wrangler wraps
SQL file execution in a transaction. This was causing staging
deployments to fail with 'cannot VACUUM from within a transaction'.
@KyleTryon KyleTryon merged commit aea5b8c into main Jan 8, 2026
14 checks passed
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.

1 participant