Skip to content

Fix drift migrations #78

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

Merged
merged 3 commits into from
Nov 6, 2024
Merged

Fix drift migrations #78

merged 3 commits into from
Nov 6, 2024

Conversation

rkistner
Copy link
Contributor

@rkistner rkistner commented Nov 6, 2024

This fixes drift_sqlite_async to run Drift migrations if specified.

The issue is that drift only runs migrations while opening the database. Part of that is skipping the migrations if isOpen is true, but we always had isOpen = true immediately.

This now changes the behavior to only have isOpen = true after open() is called, which fixes the migrations.

Fixes #76.

This also removes the alpha tag for drift_sqlite_async, to release version 0.2.0.

stevensJourney
stevensJourney previously approved these changes Nov 6, 2024
@rkistner rkistner merged commit 4e183f3 into main Nov 6, 2024
6 checks passed
@rkistner rkistner deleted the fix-drift-migrations branch November 6, 2024 07:39
dfdgsdfg pushed a commit to dfdgsdfg/sqlite_async.dart that referenced this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using drift migration to create tables
2 participants