From c32d62d4203d71e2ded0e5e6310f46673e402958 Mon Sep 17 00:00:00 2001 From: OllyNicholass Date: Fri, 5 Jul 2024 15:12:26 +0100 Subject: [PATCH] docs(#14): add linked db command --- docs/database-setup.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/database-setup.md b/docs/database-setup.md index da1045c..0e7e4a4 100644 --- a/docs/database-setup.md +++ b/docs/database-setup.md @@ -220,7 +220,7 @@ There are two options to create a migration file: - Reset the DB and apply the latest migrations - `supabase db reset` + `npx supabase db reset` 2. [Generate SQL based on differences to the schema](https://supabase.com/docs/guides/cli/local-development#diffing-changes) @@ -229,3 +229,11 @@ There are two options to create a migration file: - Generate the migration file containing the SQL with the differences in the schema `npx supabase db diff -f ` + +## Applying migrations + +Reset database in cloud + +> Prerequisite login using `npx supabase login` + +`npx supabase db reset --linked`