Add script to launch SQL test
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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;
|
||||
$$;
|
||||
|
||||
Reference in New Issue
Block a user