我已经使用 Laravel/Lumen 构建并运行了 1000 次迁移,我以前从未见过这种情况。我在本地运行我的应用程序的开发副本,我正在使用带有最新 Lumen 的 sqlite。这是发生的事情:php artisan migrateMigration table created successfully.In Builder.php line 2364: Undefined property: stdClass::$migration 我试过删除sqlite数据库并重新启动。奇怪的是,即使我删除了迁移,我仍然会收到错误消息。数据库.php<?phpreturn [ 'default' => env('DB_CONNECTION', 'mysql'), 'connections' => [ 'sqlite' => [ 'driver' => 'sqlite', 'database' => env('DB_DATABASE', database_path('database.sqlite')), 'prefix' => env('DB_PREFIX', '') ], 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, ], 'redis' => [ 'client' => env('REDIS_CLIENT', 'predis'), 'default' => [ 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), 'port' => env('REDIS_PORT', 6379), 'database' => env('REDIS_DB', 0), ], ] ]];
- 2 回答
- 0 关注
- 169 浏览
添加回答
举报
0/150
提交
取消