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

DB => Add secret to Assignment

parent 03f627c3
No related branches found
No related tags found
No related merge requests found
-- AlterTable
ALTER TABLE `Assignment` ADD COLUMN `secret` CHAR(36) NULL;
UPDATE `Assignment` SET `secret` = uuid();
\ No newline at end of file
/*
Warnings:
- A unique constraint covering the columns `[secret]` on the table `Assignment` will be added. If there are existing duplicate values, this will fail.
- Made the column `secret` on table `Assignment` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE `Assignment` MODIFY `secret` CHAR(36) NOT NULL;
-- CreateIndex
CREATE UNIQUE INDEX `Assignment_secret_key` ON `Assignment`(`secret`);
......@@ -28,6 +28,7 @@ model User {
model Assignment {
name String @id
secret String @unique @db.Char(36)
gitlabId Int
gitlabLink String
gitlabCreationInfo Json @db.Json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment