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?
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.