singlestoredb-laravel-driver icon indicating copy to clipboard operation
singlestoredb-laravel-driver copied to clipboard

Wrong charset is used when adding columns

Open nick-potts opened this issue 1 year ago • 0 comments

When adding a column like so:

 $table->string('model_value')->nullable();

I must set the charset and collation manually so it matches the driver config like so:

$charset = config('database.connections.singlestore.charset');
$collation = config('database.connections.singlestore.collation');
$table->string('model_value')->nullable()->charset($charset)->collation($collation);

is this expected behaviour?

nick-potts avatar Feb 12 '24 06:02 nick-potts