Closed mattbloomfield closed 2 years ago
After updating to 2.0.0-rc.1 I get this error:
Database Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_elementItem' in 'field list'
The SQL being executed was: SELECT elementId, siteId, field_elementItem
FROM content
Migration: lenz\linkfield\migrations\m190417_202153_migrateDataToTable
Output:
> update in {{%fields}} ... done (time: 0.008s)
> update in {{%fields}} ... done (time: 0.002s)
> update in {{%fields}} ... done (time: 0.002s)
> update in {{%fields}} ... done (time: 0.002s)
> update in {{%fields}} ... done (time: 0.002s)
> update in {{%fields}} ... done (time: 0.002s)
> batch insert into {{%lenz_linkfield}} ... done (time: 0.000s)
> drop column field_cardText_contentUrl from table {{%matrixcontent_cardtextmatrix}} ... done (time: 0.028s)
Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_elementItem' in 'field list'
The SQL being executed was: SELECT elementId, siteId, field_elementItem
FROM content (/var/www/vendor/yiisoft/yii2/db/Schema.php:678)
#0 /var/www/vendor/yiisoft/yii2/db/Command.php(1307): yii\db\Schema->convertException(Object(PDOException), 'SELECT element...')
#1 /var/www/vendor/yiisoft/yii2/db/Command.php(1168): yii\db\Command->internalExecute('SELECT element...')
#2 /var/www/vendor/yiisoft/yii2/db/Command.php(410): yii\db\Command->queryInternal('fetchAll', NULL)
#3 /var/www/vendor/yiisoft/yii2/db/Query.php(249): yii\db\Command->queryAll()
#4 /var/www/vendor/craftcms/cms/src/db/Query.php(152): yii\db\Query->all(NULL)
#5 /var/www/vendor/sebastianlenz/linkfield/src/migrations/m190417_202153_migrateDataToTable.php(129): craft\db\Query->all()
#6 /var/www/vendor/sebastianlenz/linkfield/src/migrations/m190417_202153_migrateDataToTable.php(90): lenz\linkfield\migrations\m190417_202153_migrateDataToTable->updateLinkField(Object(lenz\linkfield\fields\LinkField), '{{%content}}', '')
#7 /var/www/vendor/sebastianlenz/linkfield/src/migrations/m190417_202153_migrateDataToTable.php(54): lenz\linkfield\migrations\m190417_202153_migrateDataToTable->updateField(Object(lenz\linkfield\fields\LinkField), '{{%content}}')
#8 /var/www/vendor/sebastianlenz/linkfield/src/migrations/m190417_202153_migrateDataToTable.php(31): lenz\linkfield\migrations\m190417_202153_migrateDataToTable->updateAllFields()
#9 /var/www/vendor/craftcms/cms/src/db/Migration.php(52): lenz\linkfield\migrations\m190417_202153_migrateDataToTable->safeUp()
#10 /var/www/vendor/craftcms/cms/src/db/MigrationManager.php(232): craft\db\Migration->up(true)
#11 /var/www/vendor/craftcms/cms/src/db/MigrationManager.php(148): craft\db\MigrationManager->migrateUp(Object(lenz\linkfield\migrations\m190417_202153_migrateDataToTable))
#12 /var/www/vendor/craftcms/cms/src/services/Updates.php(251): craft\db\MigrationManager->up()
#13 /var/www/vendor/craftcms/cms/src/controllers/BaseUpdaterController.php(509): craft\services\Updates->runMigrations(Array)
#14 /var/www/vendor/craftcms/cms/src/controllers/UpdaterController.php(203): craft\controllers\BaseUpdaterController->runMigrations(Array, 'restore-db')
#15 [internal function]: craft\controllers\UpdaterController->actionMigrate()
#16 /var/www/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#17 /var/www/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams(Array)
#18 /var/www/vendor/craftcms/cms/src/web/Controller.php(190): yii\base\Controller->runAction('migrate', Array)
#19 /var/www/vendor/yiisoft/yii2/base/Module.php(534): craft\web\Controller->runAction('migrate', Array)
#20 /var/www/vendor/craftcms/cms/src/web/Application.php(277): yii\base\Module->runAction('updater/migrate', Array)
#21 /var/www/vendor/craftcms/cms/src/web/Application.php(674): craft\web\Application->runAction('updater/migrate')
#22 /var/www/vendor/craftcms/cms/src/web/Application.php(234): craft\web\Application->_processUpdateLogic(Object(craft\web\Request))
#23 /var/www/vendor/yiisoft/yii2/base/Application.php(392): craft\web\Application->handleRequest(Object(craft\web\Request))
#24 /var/www/web/index.php(22): yii\base\Application->run()
#25 {main}
@sebastian-lenz Just wanted to leave a note that I just tried the migration on a fairly complex site (Neo, SuperTable, Matrix, etc) and it worked flawlessly. :)
Not sure if it's helpful but here is the error I experienced. I was aware that there could be issues.
Plugin Versions