mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04: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
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
@ -29,7 +29,7 @@ export class Note {
|
||||||
@PrimaryGeneratedColumn()
|
@PrimaryGeneratedColumn()
|
||||||
id: number;
|
id: number;
|
||||||
|
|
||||||
@Column({ type: 'text' })
|
@Column({ type: 'text', unique: true })
|
||||||
publicId: string;
|
publicId: string;
|
||||||
|
|
||||||
@OneToMany(
|
@OneToMany(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue