Answer the question
In order to leave comments, you need to log in
(Yii2) What does error mean when creating role with rbac?
Exception 'yii\db\IntegrityException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'login' for key 'PRIMARY'
The SQL being executed was: INSERT INTO `auth_item` (`name`, `type`, `description`, `rule_name`, `data`, `created_at`, `updated_at`) VALUES ('login', 2, NULL, NULL, NULL, 1422436280, 1422436280)'
in C:\OpenServer\domains\work\editor\vendor\yiisoft\yii2\db\Schema.php:532
Error Info:
Array
(
[0] => 23000
[1] => 1062
[2] => Duplicate entry 'login' for key 'PRIMARY'
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question