0003_identities.sql
This file
Path
apps/platform/migrations/0003_identities.sql
11 lines · 506 bytes · SQL
Last changed by
Drop the private build plan's citations from the code, and fail verify if one comes backoscabrielbefore adoptiona29cef6
History of this fileTake it
1-- Outside identities linked to platform accounts: the provider2-- (`google`), its stable subject id for the person (Google's `sub`), and the3-- account's `handle_key` (the handle lowercased, as in `accounts`). Nothing4-- else: no email, no name, no token. One outside account names one handle,5-- so a second link of a subject to another handle fails on the key.6CREATE TABLE identities (7 provider TEXT NOT NULL,8 subject TEXT NOT NULL,9 handle_key TEXT NOT NULL,10 PRIMARY KEY (provider, subject)11);