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

Allow using DatabaseSchema.deleteField(_:)` with SQLite #92

Merged
merged 3 commits into from
May 16, 2024

Conversation

gwynne
Copy link
Member

@gwynne gwynne commented May 15, 2024

These changes are now available in 4.7.1

SQLite has supported ALTER TABLE ... DROP COLUMN ... since SQLite 3.35.0, so Fluent no longer needs to restrict this functionality. Fixes #91 - thanks to @wojexe for reporting!

Also fixes a DocC warning and updates dependency requirements.

…atabaseSchema.deleteField(_:)) with SQLite; it has been supported since SQLite 3.35.0. Fixes #91.
@gwynne gwynne added bug Something isn't working semver-patch Internal changes only labels May 15, 2024
@gwynne gwynne requested review from 0xTim, MahdiBM and ptoffy May 15, 2024 22:05
Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.38%. Comparing base (be7051a) to head (99dc090).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
- Coverage   82.54%   82.38%   -0.17%     
==========================================
  Files           7        7              
  Lines         212      210       -2     
==========================================
- Hits          175      173       -2     
  Misses         37       37              
Files Coverage Δ
...FluentSQLiteDriver/FluentSQLiteConfiguration.swift 77.77% <ø> (ø)
...rces/FluentSQLiteDriver/FluentSQLiteDatabase.swift 86.04% <100.00%> (-0.32%) ⬇️

@gwynne gwynne force-pushed the add-alter-drop-column-support branch from 2e8bc22 to 99dc090 Compare May 16, 2024 20:05
@gwynne gwynne merged commit 9e924b3 into main May 16, 2024
8 checks passed
@gwynne gwynne deleted the add-alter-drop-column-support branch May 16, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working semver-patch Internal changes only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQLite driver should support dropping columns in ALTER TABLE statements
2 participants