mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-02 15:42:01 +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
2c3a75187e
commit
4ff60b162e
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