Skip to content

Issue enabling FTS #2670

Answered by simolus3
powerworr asked this question in Q&A
Oct 7, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Weird, the build.yaml configs you've posted seem to do the right thing for me. Can you check whether the store_date_time_values_as_text has any effect? At the end of the generated database class, there should be something like this if it is:

  @override
  DriftDatabaseOptions get options =>
      const DriftDatabaseOptions(storeDateTimeAsText: true);

Is the .drift file in another package than the build.yaml file by any chance? To see whether the options are being applied at all, you could try adding a bogus value as well:

targets:
  $default:
    builders:
      drift_dev:
        options:
          foo: bar

If the build doesn't fail with that, the config is not being read.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@powerworr
Comment options

Answer selected by powerworr
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