Skip to content

Commit

Permalink
fix: add fkey to search_certification_requests return type
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jun 5, 2020
1 parent c8b6db1 commit 847facb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ begin;
searchResult as (
select
c.id,
select row_number() over () as id,
c.id as certification_url_id,
c.application_id,
c.version_number ,
c.certified_at,
Expand Down
6 changes: 4 additions & 2 deletions schema/deploy/types/search_certification_url_result.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
begin;

create type ggircs_portal.search_certification_url_result as (
id varchar(1000),
id bigint,
certification_url_id varchar(1000)
application_id integer,
version_number integer,
certified_at timestamptz,
Expand All @@ -18,5 +19,6 @@ create type ggircs_portal.search_certification_url_result as (
);

comment on type ggircs_portal.search_certification_url_result is '@primaryKey (id)
@foreignKey (application_id) references ggircs_portal.application(id)';
@foreignKey (application_id) references ggircs_portal.application(id)
@foreignKey (certification_url_id) references ggircs_portal.certification_url(id)';
commit;

0 comments on commit 847facb

Please sign in to comment.