fix: harden world travel migration
This commit is contained in:
@@ -41,7 +41,9 @@ export class Character {
|
||||
@UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' })
|
||||
updatedAt!: Date;
|
||||
|
||||
@ManyToOne(() => LocationDefinition, (location) => location.characters)
|
||||
@ManyToOne(() => LocationDefinition, (location) => location.characters, {
|
||||
onDelete: 'RESTRICT',
|
||||
})
|
||||
@JoinColumn({ name: 'current_location_id' })
|
||||
currentLocation!: LocationDefinition;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user