© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago•
8 replies
disdcordmaineruser

Cannot call pg expression JSON_ARRAY. Does not exist

I'm using Laravel and created a migration where the json would have a default empty json array.

$table->json('movies')->default(new Expression('(JSON_ARRAY())'));
$table->json('movies')->default(new Expression('(JSON_ARRAY())'));


When I run the migration locally, it works all fine, my pg 17.2 database works all fine. However, in supabase, when I run my migration I get an sql error that json array function does not exist.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

array_to_string(text[]) does not exist.
SupabaseSSupabase / help-and-questions
4y ago
schema "pg_pgrst_no_exposed_schemas" does not exist
SupabaseSSupabase / help-and-questions
5mo ago
relation does not exist
SupabaseSSupabase / help-and-questions
4y ago
"This Project does not Exist"
SupabaseSSupabase / help-and-questions
4w ago