Exception with unique indexes
Closed this issue · 0 comments
pvsaintpe commented
Exception (Database Exception) 'yii\db\Exception' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'terminal_group-partner_id-name-deleted_index' in 'field list' The SQL being executed was: SELECT `terminal_group-partner_id-name-deleted_index` FROM `terminal_group` WHERE `id`='1'' in /vagrant/binevo-server/vendor/yiisoft/yii2/db/Schema.php:664 Stack trace: #0 /vagrant/binevo-server/vendor/yiisoft/yii2/db/Command.php(1263): yii\db\Schema->convertException(Object(PDOException), 'SELECT `termina...') #1 /vagrant/binevo-server/vendor/yiisoft/yii2/db/Command.php(1148): yii\db\Command->internalExecute('SELECT `termina...') #2 /vagrant/binevo-server/vendor/yiisoft/yii2/db/Command.php(425): yii\db\Command->queryInternal('fetchColumn', 0) #3 /vagrant/binevo-server/vendor/yiisoft/yii2/db/Query.php(291): yii\db\Command->queryScalar() #4 /vagrant/binevo-server/vendor/pvsaintpe/yii2-log/models/ChangeLogSearch.php(120): yii\db\Query->scalar() #5 [internal function]: pvsaintpe\log\models\ChangeLogSearch->pvsaintpe\log\models\{closure}(Object(pvsaintpe\log\models\base\ChangeLogSearchBase), '12', 0, Object(pvsaintpe\log\components\grid\DataColumn)) #6 /vagrant/binevo-server/vendor/yiisoft/yii2/grid/DataColumn.php(230): call_user_func(Object(Closure), Object(pvsaintpe\log\models\base\ChangeLogSearchBase), '12', 0, Object(pvsaintpe\log\components\grid\DataColumn)) #7 /vagrant/binevo-server/vendor/yiisoft/yii2/grid/DataColumn.php(244): yii\grid\DataColumn->getDataCellValue(Object(pvsaintpe\log\models\base\ChangeLogSearchBase), '12', 0) #8 /vagrant/binevo-server/vendor/kartik-v/yii2-grid/src/DataColumn.php(242): yii\grid\DataColumn->renderDataCellContent(Object(pvsaintpe\log\models\base\ChangeLogSearchBase), '12', 0) #9 /vagrant/binevo-server/vendor/yiisoft/yii2/grid/GridView.php(520): kartik\grid\DataColumn->renderDataCell(Object(pvsaintpe\log\models\base\ChangeLogSearchBase), '12', 0) #10 /vagrant/binevo-server/vendor/pvsaintpe/yii2-grid/widgets/GridView.php(91): yii\grid\GridView->renderTableRow(Object(pvsaintpe\log\models\base\ChangeLogSearchBase), '12', 0) #11 /vagrant/binevo-server/vendor/yiisoft/yii2/grid/GridView.php(353): pvsaintpe\grid\widgets\GridView->renderTableBody() #12 /vagrant/binevo-server/vendor/yiisoft/yii2/widgets/BaseListView.php(160): yii\grid\GridView->renderItems() #13 /vagrant/binevo-server/vendor/yiisoft/yii2/grid/GridView.php(321): yii\widgets\BaseListView->renderSection('{items}') #14 /vagrant/binevo-server/vendor/pvsaintpe/yii2-grid/widgets/GridView.php(358): yii\grid\GridView->renderSection('{items}') #15 [internal function]: pvsaintpe\grid\widgets\GridView->pvsaintpe\grid\widgets\{closure}(Array) #16 /vagrant/binevo-server/vendor/pvsaintpe/yii2-grid/widgets/GridView.php(360): preg_replace_callback('/{\\w+}/', Object(Closure), '<div class="pan...') #17 /vagrant/binevo-server/vendor/pvsaintpe/yii2-grid/widgets/GridView.php(331): pvsaintpe\grid\widgets\GridView->baseRun() #18 /vagrant/binevo-server/vendor/yiisoft/yii2/base/Widget.php(140): pvsaintpe\grid\widgets\GridView->run() #19 /vagrant/binevo-server/vendor/pvsaintpe/yii2-grid/widgets/GridView.php(298): yii\base\Widget::widget(Array) #20 /vagrant/binevo-server/vendor/pvsaintpe/yii2-log/views/default/index.php(46): pvsaintpe\grid\widgets\GridView::widget(Array) #21 /vagrant/binevo-server/vendor/yiisoft/yii2/base/View.php(336): require('/vagrant/binevo...') #22 /vagrant/binevo-server/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/vagrant/binevo...', Array) #23 /vagrant/binevo-server/vendor/yiisoft/yii2/web/View.php(212): yii\base\View->renderFile('/vagrant/binevo...', Array, Object(pvsaintpe\log\controllers\DefaultController)) #24 /vagrant/binevo-server/vendor/yiisoft/yii2/web/Controller.php(49): yii\web\View->renderAjax('index.php', Array, Object(pvsaintpe\log\controllers\DefaultController)) #25 /vagrant/binevo-server/vendor/pvsaintpe/yii2-search/components/Controller.php(127): yii\web\Controller->renderAjax('index.php', Array) #26 /vagrant/binevo-server/vendor/pvsaintpe/yii2-search/components/Controller.php(138): pvsaintpe\search\components\Controller->renderAjax('index.php', Array) #27 /vagrant/binevo-server/vendor/pvsaintpe/yii2-log/controllers/DefaultController.php(25): pvsaintpe\search\components\Controller->renderWithAjax('index.php', Array) #28 [internal function]: pvsaintpe\log\controllers\DefaultController->actionIndex() #29 /vagrant/binevo-server/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #30 /vagrant/binevo-server/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #31 /vagrant/binevo-server/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('index', Array) #32 /vagrant/binevo-server/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('changelog/defau...', Array) #33 /vagrant/binevo-server/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(backend\components\Request))