Closed ds2307 closed 1 year ago
Hi, thank you for the reported bug. The project needs refactoring and a couple of changes to process these types of triggers. I will try to make them on the weekend.
@ds2307 refactoring was not required but I don't know did I understand the problem correctly. Please check https://github.com/win7user10/Laraue.EfCoreTriggers/pull/82 and versions 7.0.8-alpha/5.4.13-alpha
@win7user10 , generated code is correct now. Thank you so much for the quick fix and for this great project!
For PostgreSQL:
generate
but function for trigger must RETURN OLD (not RETURN NEW) in this case, otherwise row will not be removed
https://github.com/win7user10/Laraue.EfCoreTriggers/blob/master/src/Laraue.EfCoreTriggers.PostgreSql/PostgreSqlTriggerVisitor.cs#L50