Skip to content
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

Migration issues with Firefox #2901

Open
bytepoets-jhe opened this issue Feb 23, 2024 · 1 comment
Open

Migration issues with Firefox #2901

bytepoets-jhe opened this issue Feb 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bytepoets-jhe
Copy link

In think the migrations are not successful on Firefox.
I'm stuck on an empty page.

When I release a new version with a db change and migration, it does work for Chrome and Safari, but not for Firefox.
I created data first with the old version and everything worked after releasing the migration on Chrome and Safari.

On Firefox I have to delete my cache or delete the db in my index.html like this
const deleteDatabaseRequest = indexedDB.deleteDatabase('db.sqlite'); for the app to even load.

https://drift.simonbinder.eu/web/
With this check I can see, that Safari and Chrome are using opfsLocks, while Firefox uses opfsShared
Anyone experiencing this issue?

Flutter 3.10.0
drift 2.9.0
Firefox 123.0

@bytepoets-jhe bytepoets-jhe changed the title Issues with Firefox Migration issues with Firefox Feb 23, 2024
@simolus3
Copy link
Owner

I have tried to reproduce this in 54e205a, but that seems to work on Firefox with all supported web implementations.

Are you using package:drift/web.dart or a WasmDatabase from the newer package:drift/wasm.dart? I'm surprised to see that deleting an IndexedDB database fixes this issue, since we should use the much faster OPFS-based file system on Firefox by default.

@simolus3 simolus3 added the bug Something isn't working label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants