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

sqlite native drop column support #295

Open
jayvdb opened this issue Jan 13, 2025 · 0 comments
Open

sqlite native drop column support #295

jayvdb opened this issue Jan 13, 2025 · 0 comments

Comments

@jayvdb
Copy link
Collaborator

jayvdb commented Jan 13, 2025

https://www.sqlite.org/lang_altertable.html says sqlite supports ALTER TABLE x DROP COLUMN y.

This was added in 2021-03-12 (3.35.0) https://sqlite.org/changes.html#version_3_35_0

The bundled version of sqlite was updated to v3.35 in rusqlite two days later rusqlite/rusqlite#917

The bundled version of sqlite is v3.46.0 as of rusqlite 0.32.0
https://github.com/rusqlite/rusqlite#notes-on-building-rusqlite-and-libsqlite3-sys

We can obtain the version of sqlite using fns in https://github.com/rusqlite/rusqlite/blob/master/src/version.rs , and IMO butane could simply refuse to run if the sqlite version used is too low.

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