SupabaseS
Supabase4y ago
Jan

error when trying to run initial db migration

Hi,
I tried to run the steps from https://supabase.com/docs/guides/cli/managing-environments#overview to create the initial migration from the remote db (added three tables before using the dashboard) and now I get the following error:

➜ supabase start   
Applying migration 20221117135052_remote_commit.sql...
Error: ERROR: relation "graphql.schema_version" does not exist (SQLSTATE 42P01)
At statement 113:            
--   
-- Name: TABLE "schema_version"; Type: ACL; Schema: graphql; Owner: supabase_admin
--                 
GRANT ALL ON TABLE "graphql"."schema_version" TO "postgres";  

In the migration I also cannot see an create table statement for this table. Any idea how I can fix this issue?
How to deploy Supabase schema changes with a CI / CD pipeline.
Was this page helpful?