HomePhabricator
Diffusion Comm 640b14c1a919

[SQLite] add `keyservers` table for `KeyserverStore` data

Description

[SQLite] add keyservers table for KeyserverStore data

Summary:
Table to store data from KeyserverStore in SQLite.

Based on types defined in D10755.

Making table key-value (value is keyserver info in JSON) saves some implementation time and makes code more complicated. I discussed this with both @inka and @tomek and this should be enough - there is no need to make more columns (we can always migrate when there is any need).

Test Plan:

  1. Test migration.
  2. Logout and test creating database from scratch.

Test on both web (it's visible in worker's logs) and native.

Reviewers: inka, marcin

Reviewed By: inka

Subscribers: ashoat, tomek, inka

Differential Revision: https://phab.comm.dev/D10774

Details

Provenance
kamilAuthored on Jan 20 2024, 3:48 PM
Reviewer
inka
Differential Revision
D10774: [SQLite] add `keyservers` table for `KeyserverStore` data
Parents
rCOMMe7ae43ad692f: [lib] Create a selector that checks if a user is logged in to a keyserver
Branches
Unknown
Tags
Unknown