Page MenuHomePhabricator

[web-db] add migration logic to SQLite on web
ClosedPublic

Authored by kamil on May 25 2023, 10:25 AM.
Tags
None
Referenced Files
F3513789: D7982.diff
Sun, Dec 22, 2:06 AM
Unknown Object (File)
Mon, Dec 16, 6:08 AM
Unknown Object (File)
Mon, Dec 16, 6:08 AM
Unknown Object (File)
Mon, Dec 16, 6:08 AM
Unknown Object (File)
Mon, Dec 16, 6:00 AM
Unknown Object (File)
Nov 10 2024, 6:58 AM
Unknown Object (File)
Oct 10 2024, 12:32 AM
Unknown Object (File)
Sep 29 2024, 1:18 AM
Subscribers

Details

Summary

Similar to keyserver logic. Currently, nothing is happening when migration will fail but there is a followup task to improve error handling on web.

Depends on D7939

Test Plan
  1. Check if migrate is called when using old db
  2. Check in migrate is not called when creating fresh database
  3. Tests

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.May 25 2023, 1:45 PM

I think you could test the migration code by mocking the migrations variable with jest, but not sure if that's worth it.

This revision is now accepted and ready to land.May 30 2023, 8:26 AM