ERROR 1709 (HY000) at line 56: Index column size too large. The maximum column size is 767 bytes.
查出錯誤行56, 在行末新增資料庫的地方增加最後那一段
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
建表時將 MySQL 的 charset 改為 utf8, collation 改為 utf8_general_ci 可在 config/database.php 中設定預設值
參考
https://learnku.com/articles/9213/767-bytes-length-restrictions-on-indexing
https://www.itread01.com/content/1541757733.html
https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/547967/