-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5727e6
commit e4e6b0d
Showing
17 changed files
with
411 additions
and
114 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
packages/canyon-backend/prisma/migrations/20231110032821_update/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,24 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `path` on the `summary` table. All the data in the column will be lost. | ||
- Added the required column `report_id` to the `summary` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "summary" DROP COLUMN "path", | ||
ADD COLUMN "report_id" TEXT NOT NULL; | ||
|
||
-- CreateTable | ||
CREATE TABLE "codechange" ( | ||
"id" SERIAL NOT NULL, | ||
"project_id" TEXT NOT NULL, | ||
"compare_target" TEXT NOT NULL, | ||
"commit_sha" TEXT NOT NULL, | ||
"path" TEXT NOT NULL, | ||
"additions" INTEGER[], | ||
"deletions" INTEGER[], | ||
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "codechange_pkey" PRIMARY KEY ("id") | ||
); |
10 changes: 10 additions & 0 deletions
10
packages/canyon-backend/prisma/migrations/20231110060141_update/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,10 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `type` on the `summary` table. All the data in the column will be lost. | ||
- Added the required column `metric_type` to the `summary` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "summary" DROP COLUMN "type", | ||
ADD COLUMN "metric_type" TEXT NOT 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
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
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
Empty file.
Empty file.
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
Empty file.
Oops, something went wrong.