mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-01 12:34:04 +00:00
NoteEntity: Enable CASCADE for revision column
This makes creating new Notes easier, as the first Revision is automatically created in the database. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
56817c3f91
commit
85fa30b27c
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ export class Note {
|
|||
@OneToMany(
|
||||
_ => Revision,
|
||||
revision => revision.note,
|
||||
{ cascade: true },
|
||||
)
|
||||
revisions: Revision[];
|
||||
|
||||
|
|
Loading…
Reference in a new issue