We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Текст ошибки: *** applying m150821_133232_init > create table {{%eav_entity}} ... done (time: 0.173s) > create table {{%eav_attribute}} ...Exception: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'entityId' The SQL being executed was: CREATE TABLEae_eav_attribute( idint(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, entityIdint(11) DEFAULT 'NULL', typeIdint(11) DEFAULT 'NULL', typevarchar(50) DEFAULT '', namevarchar(255) DEFAULT 'NULL', labelvarchar(255) DEFAULT 'NULL', defaultValuevarchar(255) DEFAULT 'NULL', defaultOptionIdint(11) DEFAULT 0, descriptionvarchar(255) DEFAULT 'NULL', requiredsmallint(1) DEFAULT 0, orderint(11) DEFAULT 0 ) CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB (D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Schema.php:633) #0 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Command.php(854): yii\db\Schema->convertException(Object(PDOException), 'CREATE TABLEa...') #1 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Migration.php(260): yii\db\Command->execute() #2 D:\OpenServer\domains\artengine.lh\vendor\mirocow\yii2-eav\src\migrations\m150821_133232_init.php(80): yii\db\Migration->createTable('{{%eav_attribut...', Array, 'CHARACTER SET u...') #3 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Migration.php(93): m150821_133232_init->safeUp() #4 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\controllers\BaseMigrateController.php(509): yii\db\Migration->up() #5 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\controllers\BaseMigrateController.php(130): yii\console\controllers\BaseMigrateController->migrateUp('m150821_133232_...') #6 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0) #7 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\base\InlineAction.php(55): call_user_func_array(Array, Array) #8 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\base\Controller.php(154): yii\base\InlineAction->runWithParams(Array) #9 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\Controller.php(119): yii\base\Controller->runAction('up', Array) #10 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\base\Module.php(454): yii\console\Controller->runAction('up', Array) #11 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\Application.php(176): yii\base\Module->runAction('migrate/up', Array) #12 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\Application.php(143): yii\console\Application->runAction('migrate/up', Array) #13 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\base\Application.php(375): yii\console\Application->handleRequest(Object(yii\console\Request)) #14 D:\OpenServer\domains\artengine.lh\yii(28): yii\base\Application->run() #15 {main}
*** applying m150821_133232_init > create table {{%eav_entity}} ... done (time: 0.173s) > create table {{%eav_attribute}} ...Exception: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'entityId' The SQL being executed was: CREATE TABLE
(
int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
int(11) DEFAULT 'NULL',
varchar(50) DEFAULT '',
varchar(255) DEFAULT 'NULL',
int(11) DEFAULT 0,
smallint(1) DEFAULT 0,
int(11) DEFAULT 0 ) CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB (D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Schema.php:633) #0 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Command.php(854): yii\db\Schema->convertException(Object(PDOException), 'CREATE TABLE
*** failed to apply m150821_133232_init (time: 0.215s) `
The text was updated successfully, but these errors were encountered:
пофикшено в #41
Sorry, something went wrong.
No branches or pull requests
Текст ошибки:
*** applying m150821_133232_init > create table {{%eav_entity}} ... done (time: 0.173s) > create table {{%eav_attribute}} ...Exception: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'entityId' The SQL being executed was: CREATE TABLE
ae_eav_attribute(
idint(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
entityIdint(11) DEFAULT 'NULL',
typeIdint(11) DEFAULT 'NULL',
typevarchar(50) DEFAULT '',
namevarchar(255) DEFAULT 'NULL',
labelvarchar(255) DEFAULT 'NULL',
defaultValuevarchar(255) DEFAULT 'NULL',
defaultOptionIdint(11) DEFAULT 0,
descriptionvarchar(255) DEFAULT 'NULL',
requiredsmallint(1) DEFAULT 0,
orderint(11) DEFAULT 0 ) CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB (D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Schema.php:633) #0 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Command.php(854): yii\db\Schema->convertException(Object(PDOException), 'CREATE TABLE
a...')#1 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Migration.php(260): yii\db\Command->execute()
#2 D:\OpenServer\domains\artengine.lh\vendor\mirocow\yii2-eav\src\migrations\m150821_133232_init.php(80): yii\db\Migration->createTable('{{%eav_attribut...', Array, 'CHARACTER SET u...')
#3 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\db\Migration.php(93): m150821_133232_init->safeUp()
#4 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\controllers\BaseMigrateController.php(509): yii\db\Migration->up()
#5 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\controllers\BaseMigrateController.php(130): yii\console\controllers\BaseMigrateController->migrateUp('m150821_133232_...')
#6 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
#7 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\base\InlineAction.php(55): call_user_func_array(Array, Array)
#8 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\base\Controller.php(154): yii\base\InlineAction->runWithParams(Array)
#9 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\Controller.php(119): yii\base\Controller->runAction('up', Array)
#10 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\base\Module.php(454): yii\console\Controller->runAction('up', Array)
#11 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\Application.php(176): yii\base\Module->runAction('migrate/up', Array)
#12 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\console\Application.php(143): yii\console\Application->runAction('migrate/up', Array)
#13 D:\OpenServer\domains\artengine.lh\vendor\yiisoft\yii2\base\Application.php(375): yii\console\Application->handleRequest(Object(yii\console\Request))
#14 D:\OpenServer\domains\artengine.lh\yii(28): yii\base\Application->run()
#15 {main}
*** failed to apply m150821_133232_init (time: 0.215s)
`
The text was updated successfully, but these errors were encountered: