-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
480 additions
and
908 deletions.
There are no files selected for viewing
Submodule ops
updated
from 10f197 to ba3468
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
begin; | ||
lock radar_result; | ||
delete from radar_result where run_id is null; | ||
alter table radar_result alter column run_id set not null; | ||
commit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
-- [ ] INDEX run tsvector | ||
create index on run((error is not null)); | ||
-- [ ] final tables evaluators | ||
create index on run((error is not null)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
create table evaluator ( | ||
id uuid not null default uuid_generate_v4(), | ||
created_at timestamptz default now(), | ||
updated_at timestamptz default now(), | ||
project_id uuid not null, | ||
owner_id uuid, | ||
name varchar not null, | ||
slug varchar not null, | ||
type varchar not null, | ||
mode varchar, | ||
description text, | ||
params jsonb, | ||
filters jsonb, | ||
constraint evaluator_owner_id_fkey foreign key (owner_id) references account(id) on delete set null, | ||
constraint evaluator_project_id_fkey foreign key (project_id) references project(id) on delete cascade, | ||
primary key (id) | ||
); | ||
|
||
create table evaluation_result_v2 ( | ||
run_id uuid not null, | ||
evaluator_id uuid not null, | ||
created_at timestamptz default now(), | ||
updated_at timestamptz default now(), | ||
result jsonb NOT NULL, | ||
constraint evaluation_result_evaluator_id_fkey foreign key (evaluator_id) references evaluator(id) on delete cascade, | ||
constraint evaluation_result_run_id_fkey foreign key (run_id) references run(id) on delete cascade, | ||
primary key(run_id, evaluator_id) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lock table run; | ||
alter table run drop constraint run_external_user_id_fkey; | ||
alter table run add constraint run_external_user_id_fkey foreign key (external_user_id) references external_user(id) on delete cascade on update cascade; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters