soniq icon indicating copy to clipboard operation
soniq copied to clipboard

Support onUpdate and onDelete Options

Open davidsparkles opened this issue 5 years ago • 0 comments

Package

db

Info

@David Was mir schonmal auffällt ist, dass am @ManyToMany keine Parameter erlaubt sind. Aktuell nutze ich: @ManyToOne((type) => User, { eager: true, onDelete: "CASCADE", onUpdate: "CASCADE" }) David [vor 2 Stunden] FYI: kann sein, dass du ein bisschen Zeug vom DbGeneralPool zum ORM migrieren musst.

David [vor 2 Stunden] onDelete: "CASCADE", onUpdate: "CASCADE" funktionieren nicht für Postgres. Used only in MySQL https://typeorm.io/#/decorator-reference/column

Eugene [vor 2 Stunden] ich habe mich vertippt, @ManyToOne Und Postgres unetrstützt es und bisher hatten wir das auch und fide ich mega wichtig

davidsparkles avatar Jun 18 '19 15:06 davidsparkles