From eb79c0156afc00b4200a255d99faffe45eb245b8 Mon Sep 17 00:00:00 2001 From: Jim Lambert Date: Sat, 20 Jun 2020 09:24:00 -0400 Subject: [PATCH] align pk name with the rest of the schema and add scope id --- internal/db/migrations/postgres/04_auth.up.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/db/migrations/postgres/04_auth.up.sql b/internal/db/migrations/postgres/04_auth.up.sql index 0fc955a8a4..d3157ea600 100644 --- a/internal/db/migrations/postgres/04_auth.up.sql +++ b/internal/db/migrations/postgres/04_auth.up.sql @@ -2,16 +2,17 @@ begin; -- base table for auth methods create table auth_method ( - auth_method_id wt_public_id primary key + public_id wt_public_id primary key, + scope_id wt_public_id not null ); -- base table for auth accounts create table auth_account ( - auth_account_id wt_public_id primary key + public_id wt_public_id primary key, + scope_id wt_public_id not null ); - create or replace function insert_auth_method_subtype() returns trigger