Skip to content
Snippets Groups Projects
Commit 0b103fd5 authored by michael.minelli's avatar michael.minelli
Browse files

DB => Modify Result table

parent 92768b3c
No related branches found
No related tags found
No related merge requests found
/*
Warnings:
- You are about to drop the column `details` on the `Result` table. All the data in the column will be lost.
- You are about to drop the column `pass` on the `Result` table. All the data in the column will be lost.
- Added the required column `commit` to the `Result` table without a default value. This is not possible if the table is not empty.
- Added the required column `exitCode` to the `Result` table without a default value. This is not possible if the table is not empty.
- Added the required column `files` to the `Result` table without a default value. This is not possible if the table is not empty.
- Added the required column `results` to the `Result` table without a default value. This is not possible if the table is not empty.
- Added the required column `success` to the `Result` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE `Result` DROP COLUMN `details`,
DROP COLUMN `pass`,
ADD COLUMN `commit` JSON NOT NULL,
ADD COLUMN `exitCode` INTEGER NOT NULL,
ADD COLUMN `files` JSON NOT NULL,
ADD COLUMN `results` JSON NOT NULL,
ADD COLUMN `success` BOOLEAN NOT NULL;
......@@ -54,8 +54,11 @@ model Exercice {
model Result {
exerciceId String @db.Char(36)
dateTime DateTime @default(now())
pass Boolean
details String @db.Text
success Boolean
exitCode Int
commit Json @db.Json
results Json @db.Json
files Json @db.Json
exercice Exercice @relation(fields: [exerciceId], references: [id], onDelete: Cascade, onUpdate: Cascade)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment