5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Migrationファイル内でrenameColumnがエラーになったのを解決

Last updated at Posted at 2017-10-02

エラー内容と解決した方法と参考にしたURLだけ書きます

環境

  • Laravel 5.5.4
  • Composer 1.4.2

エラー内容

$php artisan migrate
  [Symfony\Component\Debug\Exception\FatalThrowableError]
  Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found

参考URL

解決方法

require doctrine/dbal を実行する

$composer require doctrine/dbal
.
.
.
.
$git diff composer.json
diff --git a/composer.json b/composer.json
index 04aadf9..74fd123 100644
--- a/composer.json
+++ b/composer.json
@@ -8,6 +8,7 @@
         "php": "~7.1.0",
         "barryvdh/laravel-debugbar": "^2.4",
         "dimsav/laravel-translatable": "^8.0",
+        "doctrine/dbal": "^2.6",
         "laravel/framework": "5.5.*",
         "laravel/tinker": "~1.0",
         "league/csv": "^8.0"
5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?