A
A
Artyom Alexandrov2017-06-10 14:20:51
PostgreSQL
Artyom Alexandrov, 2017-06-10 14:20:51

How to overcome error [yii\db\Exception] SQLSTATE[42501]: Insufficient privilege: 7 ERROR: no access: "RI_ConstraintTrigger_c_41391"?

[yii\db\Exception] SQLSTATE[42501]: Insufficient privilege: 7 ОШИБКА:  нет доступа: "RI_ConstraintTrigger_c_41391" - это системный триггер
The SQL being executed was: ALTER TABLE "public"."auth_assignment" DISABLE TRIGGER ALL; ALTER TABLE "public"."auth_item" DISABLE TRIGGER ALL;
ALTER TABLE "public"."auth_item_child" DISABLE TRIGGER ALL; ALTER TABLE "public"."auth_rule" DISABLE TRIGGER ALL; ALTER TABLE
"public"."migration" DISABLE TRIGGER ALL; ALTER TABLE "public"."migration_user_manager" DISABLE TRIGGER ALL; ALTER TABLE "public"."user" DISABLE 
TRIGGER ALL;

Created models describing authManager tables and created fixtures on them. Loading all fixtures with data in the _before() test method. Before connecting RBAC, all tests that came out of the box with yii2 went without errors. What can be done about it? Where is the mistake?
If you need to post some files to find out the reason, just write everything and I'll post it.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question