fix: harden world travel migration

This commit is contained in:
Bastian Wagner
2026-08-18 19:03:21 +02:00
parent 492765d8ca
commit 21f701e904
5 changed files with 131 additions and 27 deletions

View File

@@ -38,6 +38,7 @@ export class LocationConnection {
@ManyToOne(
() => LocationDefinition,
(location) => location.outgoingConnections,
{ onDelete: 'RESTRICT' },
)
@JoinColumn({ name: 'from_location_id' })
fromLocation!: LocationDefinition;
@@ -45,6 +46,7 @@ export class LocationConnection {
@ManyToOne(
() => LocationDefinition,
(location) => location.incomingConnections,
{ onDelete: 'RESTRICT' },
)
@JoinColumn({ name: 'to_location_id' })
toLocation!: LocationDefinition;