Skip to content

Use version 3.x of sqlite3 package #3710

@RoarGronmo

Description

@RoarGronmo

When trying to migrate one our projects to sqlite3 3.0.0 (since flutter pub get showed a new 3.0.0 version of sqlite3), following the description on how to migrate here we met this problem:

C:\FlutterProjects\mOffice git:[78-rework-layout-of-mmap2_b1]
flutter pub get
Resolving dependencies... (7.2s)
Because drift_dev >=2.23.0 depends on sqlite3 ^2.4.6 and m_office depends on sqlite3 ^3.0.0, drift_dev >=2.23.0 is forbidden.
So, because m_office depends on drift_dev ^2.28.0, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on sqlite3: flutter pub add sqlite3:^2.9.4
Failed to update packages.

drift_dev version was set to 2.28.0, which I think is fairly new...

Anyway, will there be a migration guide for drift to sqlite3 v3.0.0, or will it be provided "out-of-the-box" in a future drift release ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions