You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code will currently fail with SQLite Database with this error:
[ WARNING ] SQLite only supports adding columns in ALTER TABLE statements.
Swift/ErrorType.swift:200: Fatal error: Error raised at top level: SQLite only supports adding columns in ALTER TABLE statements.
* Remove the artificial restriction on using ALTER TABLE DROP COLUMN (DatabaseSchema.deleteField(_:)) with SQLite; it has been supported since SQLite 3.35.0. Fixes#91.
* Can't link to stuff that's not in the same module. Fixes a DocC warning.
* Update SQLiteKit and FluentKit dependency requirements
Describe the issue
SQLite driver should support dropping columns in ALTER TABLE statements
Vapor version
4.97.0
Operating system and version
macOS Sonoma 14.4.1
Swift version
Swift Package Manager - Swift 5.10.0-dev
Steps to reproduce
Outcome
This code will currently fail with SQLite Database with this error:
Additional notes
The error is thrown, because it falls into this guard statement:
https://github.com/vapor/fluent-sqlite-driver/blame/be7051a9cfcd4e3aeb10d7303cb2634d034350b8/Sources/FluentSQLiteDriver/FluentSQLiteDatabase.swift#L52
Support for dropping columns was added in SQLite 3.35.0
The text was updated successfully, but these errors were encountered: