Skip to content

How to run initial migration that adds FTS5 virtual table? #3342

Answered by mattr12
mattr12 asked this question in Q&A
Discussion options

You must be logged in to vote

Latest edit: Sorry to bother you, this issue was apparently caused by a trailing comma in the notes_search table.

It is using drift_flutter: ^0.2.0 for a Flutter app on iOS and Android.

I can create the fts5 table when I download the data container using Xcode or connect to the DB on the simulator using something like sqlite3 path/to/local_db.db but that is probably irrelevant here since it uses my laptop's version of SQLite3 as opposed to the one that drift_flutter comes with?

Thanks for the tip on checking pragmas via customSelect--both of them were actually enabled.

Edit: Logged out final q3 = await (localDb.customSelect('PRAGMA compile_options')).get(); and flutter: {compile_options:…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@simolus3
Comment options

@mattr12
Comment options

Answer selected by simolus3
@simolus3
Comment options

@mattr12
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants