From 69561e5c6352f9f9a088a3deea8dde2932b365fa Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Mon, 3 Oct 2022 15:58:46 +0200 Subject: [PATCH] feat(note): make publicId unique Signed-off-by: Philip Molares --- src/notes/note.entity.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notes/note.entity.ts b/src/notes/note.entity.ts index 6f8c79f94..61474f173 100644 --- a/src/notes/note.entity.ts +++ b/src/notes/note.entity.ts @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) + * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */ @@ -29,7 +29,7 @@ export class Note { @PrimaryGeneratedColumn() id: number; - @Column({ type: 'text' }) + @Column({ type: 'text', unique: true }) publicId: string; @OneToMany(