Осветить \ База данных \ QueryException SQLState [42S22]: столбец не найден: 1054 Неизвестный столбец 'current_team_id' Php

Кемеровские программисты php общаются здесь
Ответить Пред. темаСлед. тема
Anonymous
 Осветить \ База данных \ QueryException SQLState [42S22]: столбец не найден: 1054 Неизвестный столбец 'current_team_id'

Сообщение Anonymous »

Установка: мигрировал DB от Laravel 7 в Laravel 8, JetStream с командами (PHP Artisan JetStream: установить инерцию -Teams), Inertia.js < /p>
Illuminate\Database\Connection::runQueryCallback
vendor/laravel/framework/src/Illuminate/Database/Connection.php:671`

Illuminate\Database\QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'current_team_id' in 'field list' (SQL: update `users` set `current_team_id` = 1, `users`.`updated_at` = 2020-10-08 21:22:00 where `id` = 5)
< /code>
/* @throws \Illuminate\Database\QueryException */
protected function runQueryCallback($query, $bindings, Closure $callback)
{
// To execute the statement, we'll simply call the callback, which will actually
// run the SQL against the PDO connection. Then we can calculate the time it
// took to execute and log the query SQL, bindings and time in our memory.
try {
$result = $callback($query, $bindings);
}

// If an exception occurs when attempting to run a query, we'll format the error
// message to include the bindings with SQL, which will make this exception a
// lot more helpful to the developer instead of just the database's errors.
catch (Exception $e) {
throw new QueryException(
$query, $this->prepareBindings($bindings), $e
);
}

return $result;
}

/**
* Log a query in the connection's query log.
*
* @param string $query
* @param array $bindings
* @param float|null $time
* @return void
*/
< /code>

A column was not found You might have forgotten to run your
migrations. You can run your migrations using php artisan migrate.
Pressing the button below will try to run your migrations.

Migration didn´t fix the problem. Wher to put the column in? How to fix?
Изображение

Thank you guys! :)

Подробнее здесь: https://stackoverflow.com/questions/642 ... 1054-unkno
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Php»