feat(note): make publicId unique

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2022-10-03 15:58:46 +02:00
parent 66c02a3875
commit 69561e5c63

View file

@ -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(