mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04: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(
|
@OneToMany(
|
||||||
_ => Revision,
|
_ => Revision,
|
||||||
revision => revision.note,
|
revision => revision.note,
|
||||||
|
{ cascade: true },
|
||||||
)
|
)
|
||||||
revisions: Revision[];
|
revisions: Revision[];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue