Answer the question
In order to leave comments, you need to log in
How to create int[] column using laravel ORM?
I'm digging into the legacy project. Laravel version 5. Postgres 14 version. int[] has been supporting it for a long time.
In migration I'm trying to create a column in pure SQL
DB::statement('ALTER TABLE '.$needle_table.' ADD COLUMN parents int[]');
In AbstractPlatform.php line 454:
Unknown database type _int4 requested, Doctrine\DBAL\Platforms\PostgreSQL100Platform may not support it.
DB::connection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question