Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

.yii/permission denied #1

Closed
QuinLena15 opened this issue Sep 1, 2015 · 10 comments
Closed

.yii/permission denied #1

QuinLena15 opened this issue Sep 1, 2015 · 10 comments
Labels

Comments

@QuinLena15
Copy link

It is impossible to start the migration. He writes:
.yii / permission denied

@bupy7 bupy7 added the help label Sep 1, 2015
@bupy7
Copy link
Owner

bupy7 commented Sep 1, 2015

write me what you did by steps

@QuinLena15
Copy link
Author

  1. Run php composer.phar require --prefer-dist bupy7/yii2-config "*"
  2. Run ./yii migrate/up --migrationPath=@bupy7/config/migrations

@bupy7
Copy link
Owner

bupy7 commented Sep 1, 2015

@QuinLena15 You permission denied at system level. Check permission yii file.

@QuinLena15
Copy link
Author

create unique index unique-module-name-language on {{%config}} (module,nam e,language) ...Exception 'yii\db\Exception' with message 'SQLSTATE[42000]: Synta x error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
The SQL being executed was: CREATE UNIQUE INDEX unique-module-name-language ON config (module, name, language)'
in /vendor/yiisoft/yii2/db/Schema.php:595

Error Info:
Array
(
[0] => 42000
[1] => 1071
[2] => Specified key was too long; max key length is 1000 bytes
)

@bupy7
Copy link
Owner

bupy7 commented Sep 1, 2015

@QuinLena15 You need use InnoDB storage engine. Check it.

@bupy7
Copy link
Owner

bupy7 commented Sep 1, 2015

@QuinLena15 Or update package to v1.0.1 and again run migration.

@QuinLena15
Copy link
Author

InnoDB задается же при создании таблицы? Сам композер обновила...

@bupy7
Copy link
Owner

bupy7 commented Sep 1, 2015

@QuinLena15 write please by english what other users can get answer if their have will be this problem

@bupy7
Copy link
Owner

bupy7 commented Sep 1, 2015

@QuinLena15 you must be update package bupy7/yii2-config to version 1.0.1 and again run migration.

@bupy7
Copy link
Owner

bupy7 commented Sep 1, 2015

@QuinLena15 if may not write by english then go to my blog.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants