Skip to content

Commit 5c89274

Browse files
authored
Merge pull request #2200 from Northeastern-Electric-Racing/#2199-add-iconName-to-TeamType-schema
#2199 add iconName to TeamType schema
2 parents 6496df8 + 4f9e9b6 commit 5c89274

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
Warnings:
3+
4+
- Added the required column `iconName` to the `TeamType` table without a default value. This is not possible if the table is not empty.
5+
6+
*/
7+
-- AlterTable
8+
ALTER TABLE "TeamType" ADD COLUMN "iconName" TEXT NOT NULL;

src/backend/src/prisma/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ enum Design_Review_Status {
590590
model TeamType {
591591
teamTypeId String @id @default(uuid())
592592
name String @unique
593+
iconName String
593594
Design_Reviews Design_Review[]
594595
}
595596

src/backend/tests/test-data/design-reviews.test-data.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { DesignReview as SharedDesignReview, DesignReviewStatus as sharedDesignR
66

77
export const teamType1: TeamType = {
88
teamTypeId: '1',
9-
name: 'teamType1'
9+
name: 'teamType1',
10+
iconName: 'YouTubeIcon'
1011
};
1112

1213
export const prismaDesignReview1: Prisma.Design_ReviewGetPayload<typeof designReviewQueryArgs> = {

src/shared/src/types/design-review-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ export enum DesignReviewStatus {
3535
export interface TeamType {
3636
teamTypeId: string;
3737
name: string;
38+
iconName: string;
3839
}

0 commit comments

Comments
 (0)