© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
Donny

Creating local project from remote -- ERROR relation graphql.schema_version does not exist

Hi guys!
I'm trying to create a local development environment from an existing remote project.
Following the guide at https://supabase.com/docs/guides/cli/local-development,

npx supabase init
npx supabase start
npx supabase db remote commit
npx supabase db reset

I get the following error running the reset command:
Error: ERROR: relation "graphql.schema_version" does not exist (SQLSTATE 42P01)
At statement 125:                                                                                   
                                                                                  
                                                                                  
--                                                                                
-- Name: TABLE "schema_version"; Type: ACL; Schema: graphql; Owner: supabase_admin
--                                                                                
                                                                                  
GRANT ALL ON TABLE "graphql"."schema_version" TO "postgres";
Error: ERROR: relation "graphql.schema_version" does not exist (SQLSTATE 42P01)
At statement 125:                                                                                   
                                                                                  
                                                                                  
--                                                                                
-- Name: TABLE "schema_version"; Type: ACL; Schema: graphql; Owner: supabase_admin
--                                                                                
                                                                                  
GRANT ALL ON TABLE "graphql"."schema_version" TO "postgres";


Looking at the generated migration file, it doesn't seem to create the table graphql.schema_version.

I'm guessing the CLI creates a different type of base database locally than what is hosted remotely? The remote project is 4-5 months old and been done entirely in production.

Do you guys know what I can do? Is there a better way to migrate the db, a way to ensure local is the same version as remote, or a safe way to upgrade the remote db?

My supabase CLI version is 1.12.2

Best regards
Donny
404
404
Page not found
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

ERROR function graphql.get_schema_version() does not exist
SupabaseSSupabase / help-and-questions
4y ago
relation does not exist
SupabaseSSupabase / help-and-questions
4y ago
Error: schema "vaults" does not exist
SupabaseSSupabase / help-and-questions
6mo ago
Error "This project does not exist"
SupabaseSSupabase / help-and-questions
3mo ago