What do you mean by laravel data types? You probably need to stick with your MySQL data types.
And I know for a fact tiny int works with dbal. I use it for checkbox.
Mar 31, 2016
17
Level 1
Unsupported laravel datatypes in doctrine/dbal
Trying to use migration to change mediumInteger column's property using change() Installed doctrine/dbal as required. Running migration gives this error:
[Doctrine\DBAL\DBALException]
Unknown column type "mediuminteger" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(
). You can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database introspect
ion then you might have forgot to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or ha
ve your custom types implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem with the cache or forgot s
ome mapping information.
In the migration, that datatype is written in correct case:
$table->mediumInteger('starting_price')->unsigned()->nullable()->change();
As I understand, there are additional data types that are not supported, like tinyInteger. I can fix manually, but trying to work by the book.
Please or to participate in this conversation.