File tree Expand file tree Collapse file tree 4 files changed +5
-0
lines changed
migrations/20240904092455_add_others_to_contest_type Expand file tree Collapse file tree 4 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ JOI JOI
2020TYPICAL90 TYPICAL90
2121TESSOKU_BOOK TESSOKU_BOOK
2222MATH_AND_ALGORITHM MATH_AND_ALGORITHM
23+ OTHERS OTHERS
2324 }
2425
2526
Original file line number Diff line number Diff line change 1+ -- AlterEnum
2+ ALTER TYPE " ContestType" ADD VALUE ' OTHERS' ;
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ enum ContestType {
215215 TYPICAL90 // 競プロ典型 90 問
216216 TESSOKU_BOOK // 競技プログラミングの鉄則
217217 MATH_AND_ALGORITHM // アルゴリズムと数学
218+ OTHERS // その他
218219}
219220
220221// 11Q(最も簡単)〜6D(最難関)。
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export const ContestType: { [key in ContestTypeOrigin]: key } = {
1313 TYPICAL90 : 'TYPICAL90' , // 競プロ典型 90 問
1414 TESSOKU_BOOK : 'TESSOKU_BOOK' , // 競技プログラミングの鉄則
1515 MATH_AND_ALGORITHM : 'MATH_AND_ALGORITHM' , // アルゴリズムと数学
16+ OTHERS : 'OTHERS' ,
1617} as const ;
1718
1819// Re-exporting the original type with the original name.
You can’t perform that action at this time.
0 commit comments