How to methods onUpdate and onDelete

#1

Can anyone explain to me how the onUpdate and onDelete (CASCADE) rule works in migrations?

0 Likes

#2

If you have experience with MySQL, for example, the rules you know there about CASCADE are exactly the same here, just use the Knex.js syntax.

2 Likes

#3

Thanks @begueradj

1 Like