Closed sdlins closed 4 years ago
This could be related to #16479.
Sorry to dig into an old issue.
The problem come from the rbac trigger (trigger_auth_item_child) in msssql
On delete there is a variable assignation
and the SELECT name FROM deleted return the names of the planned deleted lines
A solution could be to split into two triggers, one for delete and one for update (this is what we did in our projects) @samdark would you like a pull request ?
Yes.
Done
I have this migration for RBAC:
Line
$rbac->removeAll();
results in:The problem happens inside
DbManager
:Tryed to run the generated query
DELETE FROM [ALTERACAOCRONO_RBAC_ITEM]
right in MSSQL manager and the error was the same. Probably it has something to do with the TRIGGER created by yii rbac migration.Additional info