You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for a similar issue in our bug tracker and didn't find any solutions.
What happened?
Problem: When fkAction or fkOnDelete is specified (has value that differs from CASCADE) for relation, it has not effect when creating a migration via cycle:migrate.
voucher_id integerconstraint participants_foreign_voucher_id_61289758e3bf4
references vouchers
onupdate cascade on deletesetnull,
when cycle:migrate is called, I except change on update action to set null.
But It creates migration, that changes on delete action to cascade in up method - it's incorrect!
No duplicates 🥲.
What happened?
Problem: When
fkAction
orfkOnDelete
is specified (has value that differs fromCASCADE
) for relation, it has not effect when creating a migration viacycle:migrate
.Example:
cycle:migrate
is called, I except change on update action toset null
.But It creates migration, that changes on delete action to
cascade
in up method - it's incorrect!In down method it correctly returns back all things (to current schema):
Version
The text was updated successfully, but these errors were encountered: