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

DB => Add secret to Assignment

parent c574fcaf
Branches
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`);
...@@ -35,6 +35,7 @@ model User { ...@@ -35,6 +35,7 @@ model User {
model Assignment { model Assignment {
name String @id name String @id
secret String @unique @db.Char(36)
gitlabId Int gitlabId Int
gitlabLink String gitlabLink String
gitlabCreationInfo Json @db.Json 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