tpetry / laravel-postgresql-enhanced

Support for many missing PostgreSQL specific features
MIT License
777 stars 31 forks source link

Laravel 11.25.0 introduces vector support and breaks BlueprintTypes::vector #100

Closed keepanitreel closed 2 months ago

keepanitreel commented 2 months ago

Laravel Framework PR adds support for vector and breaks BlueprintTypes::vector

Declaration of Tpetry\PostgresqlEnhanced\Schema\BlueprintTypes::vector(string $column, int $dimensions = 1536): Illuminate\Database\Schema\ColumnDefinition must be compatible with Illuminate\Database\Schema\Blueprint::vector($column, $dimensions)
tpetry commented 2 months ago

This issue is fixed with version 2.0.0.

The only breaking change to v1 is that the default $dimensions value to 1536 had to be dropped. It is now required to always specify it.