diff --git a/README.md b/README.md index a9d25d7..2b4188f 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,14 @@ - Note that if you're using VSCode with all the suggested extensions, VSCode should be formatting all your files on save. - `npm run gen:types` will generate the types for the database. +### Database management + +- `npx supabase start` wil start a local dev database +- `npx supabase stop` will stop the local dev database (data is persisted unless you do a reset). +- `npx supabase db push --local` will apply migrations to your local dev database. Useful if someone else has made new SQL migrations. +- `npx supabase db reset` will completely reset the local dev database. +- `npx supabase diff db -f ` will generate a new migration file based on the current state of the database. This isn't 100% foolproof, so don't use it blindly. + ### What's where? - `supabase/` contains Supabase configurations and database schemas. See the READMEs in there fore more info.