Laravel 10までのマイグレーションでは、tinyint型のカラムをchangeメソッドで変更しようとすると以下のエラーとなりうまくいかない。 Unknown column type “tinyinteger” requested.
マニュアルに以下の記述があるように、マイグレーションで変更できるデータ型は限られている。
When using the doctrine/dbal package, the following column types can be modified: bigInteger, binary, boolean, char, date, dateTime, dateTimeTz, decimal, double, integer, json, longText, mediumText, smallInteger, string, text, time, tinyText, unsignedBigInteger, unsignedInteger, unsignedSmallInteger, ulid, and uuid.
コメント