Skip to content

Commit b65d966

Browse files
committed
#1189: Added newline to migration and Install WP to seed data
1 parent ac47f99 commit b65d966

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

src/backend/src/prisma/migrations/20231010194436_integration_to_install/migration.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ ALTER TABLE "Work_Package" ALTER COLUMN "stage" TYPE "Work_Package_Stage_new" US
77
END);
88
ALTER TYPE "Work_Package_Stage" RENAME TO "Work_Package_Stage_old";
99
ALTER TYPE "Work_Package_Stage_new" RENAME TO "Work_Package_Stage";
10-
DROP TYPE "Work_Package_Stage_old";
10+
DROP TYPE "Work_Package_Stage_old";

src/backend/src/prisma/seed.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,24 @@ const performSeed: () => Promise<void> = async () => {
405405
);
406406
const workPackage3WbsNumber = validateWBS(workPackage3WbsString);
407407

408+
/** Work Package 4 */
409+
const { workPackageWbsNumber: workPackage4WbsNumber, workPackage: workPackage4 } = await seedWorkPackage(
410+
thomasEmrax,
411+
project5WbsNumber,
412+
'Install Wiring Harness',
413+
changeRequest1Id,
414+
WorkPackageStage.Install,
415+
'04/01/2023',
416+
7,
417+
[],
418+
['Assemble and install wiring harness', 'Confirm the installation was successful'],
419+
['Wiring harness is functional and installed in the car'],
420+
thomasEmrax,
421+
WbsElementStatus.Active,
422+
joeShmoe.userId,
423+
thomasEmrax.userId
424+
);
425+
408426
/**
409427
* Change Requests
410428
*/

0 commit comments

Comments
 (0)