refactoring #19: rename fixture files

This commit is contained in:
2019-07-30 09:50:29 +02:00
parent a897333533
commit 6eb3991a52
9 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
do
$$
declare
_password text := crypt('azerty', gen_salt('bf', 8));
begin
delete from "user";
insert into "user" (username, password, blocked_at)
select
'username' || s,
_password,
case when s % 10 = 0 then now() else null end
from generate_series(1, 1000) s;
raise notice 'user fixtures done';
end;
$$;