bosnadev / database

An extended PostgreSQL driver for Laravel 5 with support for some aditional PostgreSQL data types: hstore, uuid, jsonb.
https://bosnadev.com
MIT License
78 stars 68 forks source link

Issue with using useCurrent on Laravel 10 #58

Closed mikebrandl closed 8 months ago

mikebrandl commented 9 months ago

When using useCurrent in a migration:


$table->dateTime('intCreatedDateTime')->useCurrent();

This throws the error:

   TypeError 

  preg_match(): Argument #2 ($subject) must be of type string, Illuminate\Database\Query\Expression given

  at vendor/bosnadev/database/src/Bosnadev/Database/Schema/Grammars/PostgresGrammar.php:300

Is this a known issue? Thanks for your help.

mikebrandl commented 9 months ago

Fixed in #57