Skip to content

Commit

Permalink
fixed seed file, moved region inserts into migration
Browse files Browse the repository at this point in the history
  • Loading branch information
al-rosenthal committed Jan 18, 2024
1 parent 34fc994 commit 9189a72
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 98 deletions.

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions database/src/seeds/04_mock_test_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,27 +259,27 @@ export const insertSubmission = (includeSecurityReviewTimestamp: boolean, includ
includePublishTimestamp && !!securityReviewTimestamp ? `$$${faker.date.past().toISOString()}$$` : null;

return `
INSERT INTO submission
(
source_id,
system_user_id,
source_system,
name,
description,
security_review_timestamp,
publish_timestamp
)
values
(
public.gen_random_uuid(),
(SELECT system_user_id from system_user where user_identifier = 'SIMS'),
'SIMS',
$$${faker.company.name()}$$,
$$${faker.lorem.words({ min: 5, max: 100 })}$$,
${securityReviewTimestamp},
${publishTimestamp}
)
RETURNING submission_id;
INSERT INTO submission
(
uuid,
name,
description,
security_review_timestamp,
publish_timestamp,
system_user_id,
source_system
)
values
(
public.gen_random_uuid(),
$$${faker.company.name()}$$,
$$${faker.lorem.words({ min: 5, max: 100 })}$$,
${securityReviewTimestamp},
${publishTimestamp},
(SELECT system_user_id from system_user where user_identifier = 'SIMS'),
'SIMS'
)
RETURNING submission_id;
`;
};

Expand Down
75 changes: 0 additions & 75 deletions database/src/seeds/07_env_region_look_up.ts

This file was deleted.

0 comments on commit 9189a72

Please sign in to comment.