mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
feat(note): make publicId unique
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
66c02a3875
commit
69561e5c63
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue