From 7b00b19fce3189069bcdbe0d2bcf91322506eb2b Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 21 Jan 2021 17:52:03 +0100 Subject: [PATCH] MAde uuid column unique ref #112 --- src/models/entities/RunnerOrganisation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/entities/RunnerOrganisation.ts b/src/models/entities/RunnerOrganisation.ts index 9ac106d..e137cdf 100644 --- a/src/models/entities/RunnerOrganisation.ts +++ b/src/models/entities/RunnerOrganisation.ts @@ -32,7 +32,7 @@ export class RunnerOrganisation extends RunnerGroup { * The api key can be used for the /runners/register/:token endpoint. * Is has to be base64 encoded if used via the api (to keep url-safety). */ - @Column({ nullable: true }) + @Column({ nullable: true, unique: true }) @IsString() @IsOptional() key?: string;