© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
4 replies
Dev

Trying to alter a jsonb column's default type to be empty jsonb.

I'm attempting to run this:
alter table public.profiles ALTER COLUMN socials jsonb not null default '{}'::jsonb

Getting this error:
Failed to validate sql query: syntax error at or near "jsonb"
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

set the default value of a jsonbarray column
SupabaseSSupabase / help-and-questions
3y ago
Unable to filter on jsonb array column
SupabaseSSupabase / help-and-questions
4y ago
Using contains query for a nested jsonb column
SupabaseSSupabase / help-and-questions
4y ago
Is it possible to mention type of jsonb
SupabaseSSupabase / help-and-questions
4y ago