что поддерживается этот тип https://laravel.com/docs/8.x/migrations#available-column-types
при миграции падает исключение
Doctrine\DBAL\Exception
Unknown column type "ipaddress" 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 introspection then you might have forgotten to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom types implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem with the cache or forgot some mapping information.
\Doctrine\DBAL\Types\Type::getTypesMap()
возвращает
"array" => "Doctrine\DBAL\Types\ArrayType"
"ascii_string" => "Doctrine\DBAL\Types\AsciiStringType"
"bigint" => "Doctrine\DBAL\Types\BigIntType"
"binary" => "Doctrine\DBAL\Types\BinaryType"
"blob" => "Doctrine\DBAL\Types\BlobType"
"boolean" => "Doctrine\DBAL\Types\BooleanType"
"date" => "Doctrine\DBAL\Types\DateType"
"date_immutable" => "Doctrine\DBAL\Types\DateImmutableType"
"dateinterval" => "Doctrine\DBAL\Types\DateIntervalType"
"datetime" => "Doctrine\DBAL\Types\DateTimeType"
"datetime_immutable" => "Doctrine\DBAL\Types\DateTimeImmutableType"
"datetimetz" => "Doctrine\DBAL\Types\DateTimeTzType"
"datetimetz_immutable" => "Doctrine\DBAL\Types\DateTimeTzImmutableType"
"decimal" => "Doctrine\DBAL\Types\DecimalType"
"float" => "Doctrine\DBAL\Types\FloatType"
"guid" => "Doctrine\DBAL\Types\GuidType"
"integer" => "Doctrine\DBAL\Types\IntegerType"
"json" => "Doctrine\DBAL\Types\JsonType"
"json_array" => "Doctrine\DBAL\Types\JsonArrayType"
"object" => "Doctrine\DBAL\Types\ObjectType"
"simple_array" => "Doctrine\DBAL\Types\SimpleArrayType"
"smallint" => "Doctrine\DBAL\Types\SmallIntType"
"string" => "Doctrine\DBAL\Types\StringType"
"text" => "Doctrine\DBAL\Types\TextType"
"time" => "Doctrine\DBAL\Types\TimeType"
"time_immutable" => "Doctrine\DBAL\Types\TimeImmutableType"
никто не в курсе что за фигня?))
а че за база данных?
postgrees... но по идее же ларка сама должна типы разруливать.. хз что происходит)
Обсуждают сегодня