From: Sam Hartman Date: Mon, 14 Jul 2014 18:18:36 +0000 (-0400) Subject: Include authorizations view in schema X-Git-Tag: 1.3.1~22 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=5f7d6a087fdda16433e0c47d025e9b4929d33556;hp=ccd6105b9112a2f47a1de59fb22448c49e674ec0;p=trust_router.git Include authorizations view in schema --- diff --git a/schema.sql b/schema.sql index 0174159..6ae8690 100644 --- a/schema.sql +++ b/schema.sql @@ -1,6 +1,8 @@ create table if not exists psk_keys (keyid text primary key, key blob, client_dh_pub raw(20)); create table if not exists authorizations( client_dh_pub raw(20), coi string, acceptor_realm string, hostname string, apc string); create index if not exists authorizations_dhpub on authorizations( client_dh_pub); +CREATE VIEW if not exists authorizations_keys as select keyid, authorizations.* from psk_keys join authorizations on psk_keys.client_dh_pub = authorizations.client_dh_pub; + .quit