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

Recreate indices when altering a table in SQLite #4277

Merged
merged 4 commits into from Feb 5, 2021

Conversation

nickrum
Copy link
Contributor

@nickrum nickrum commented Feb 5, 2021

I tried to separate the parsing and the altering logic as much as possible.

When querying sqlite_master for create index statements, it seems like only the first part of those statements is in uppercase. It would be nice if the casing was consistent but when I tried to uppercase the index creation statements in the SQLite TableCompiler, nearly all tests failed with cryptic errors.

@kibertoad
Copy link
Collaborator

Great job! Other than minor naming nitpick, looks amazing.

@nickrum nickrum force-pushed the sqlite-recreate-index-feature branch from 41df15e to 5529c48 Compare February 5, 2021 14:30
@nickrum
Copy link
Contributor Author

nickrum commented Feb 5, 2021

Thanks! The naming should be fixed.

@kibertoad kibertoad merged commit 1ec7a66 into knex:master Feb 5, 2021
@nickrum nickrum deleted the sqlite-recreate-index-feature branch February 5, 2021 15:01
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.

None yet

2 participants