Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 當php artisan migrate發生以下錯誤時
- Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
- 新增defaultStringLength至app/Providers/AppServiceProvider.php內
- 如下:
- use Illuminate\Support\Facades\Schema;
- public function boot()
- {
- Schema::defaultStringLength(191);
- }
- 刪除所有table後重新執行 php artisan migrate
Add Comment
Please, Sign In to add comment