refactoring #19: rename fixture files
This commit is contained in:
17
resources/sql/fixtures/01-user.sql
Normal file
17
resources/sql/fixtures/01-user.sql
Normal 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;
|
||||
$$;
|
||||
|
||||
Reference in New Issue
Block a user