Add script to launch SQL test

This commit is contained in:
2020-03-18 02:18:10 +01:00
parent 06684120ce
commit 64e3fb0134
70 changed files with 39 additions and 108 deletions

View File

@@ -7,7 +7,7 @@ begin
delete from vote_for_constitution;
delete from vote_for_comment_on_article;
delete from vote_for_comment_on_constitution;
raise notice '%', article_count;
insert into vote_for_article (id, created_by_id, target_id, note, anonymous)
select
uuid_in(md5('vote_for_article'||row_number() over ())::cstring),

View File

@@ -25,8 +25,6 @@ begin
join (select *, row_number() over () rn from article) a using (rn);
end loop;
raise notice '% opinion inserted', (select count(*) from opinion_on_article);
raise notice 'opinions fixtures done';
end;
$$;