-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2614 from flacial/2601-handle-already-flagged-exe…
…rcises Add `removed` column to the Exercise table
- Loading branch information
Showing
6 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,7 @@ const getExercisesData: GetExercisesQuery = { | |
email: '[email protected]', | ||
discordId: '8321' | ||
}, | ||
removed: false, | ||
description: '```\nlet a = 5\na = a + 10\n// what is a?\n```', | ||
answer: '15', | ||
explanation: 'You can reassign variables that were created with "let".', | ||
|
@@ -90,6 +91,7 @@ const getExercisesData: GetExercisesQuery = { | |
email: '[email protected]', | ||
discordId: '8321' | ||
}, | ||
removed: false, | ||
description: '```\nlet a = 1\na += 2\n// what is a?\n```', | ||
answer: '3', | ||
explanation: '`a += 2` is a shorter way to write `a = a + 2`', | ||
|
@@ -110,6 +112,7 @@ const getExercisesData: GetExercisesQuery = { | |
email: '[email protected]', | ||
discordId: '8321' | ||
}, | ||
removed: false, | ||
description: '```\nlet a = 1\na -= 2\n// what is a?\n```', | ||
answer: '-1', | ||
explanation: null, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ const GET_EXERCISES = gql` | |
slug | ||
} | ||
} | ||
removed | ||
description | ||
answer | ||
explanation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
prisma/migrations/20221216150853_add_removed_column_to_exercise/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "exercises" ADD COLUMN "removed" BOOLEAN DEFAULT false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bca6a74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
c0d3-app – ./
c0d3-app-c0d3-prod.vercel.app
c0d3-app-git-master-c0d3-prod.vercel.app
c0d3-app.vercel.app
www.c0d3.com
v2.c0d3.app