Skip to content

Commit

Permalink
chore: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SiTaggart committed Oct 4, 2023
1 parent d7a8bd1 commit 9a0a3b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/on_merge_to_main_supabase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
with:
fetch-depth: 0

- uses: nrwl/nx-set-shas@v3

- name: Setup Node.js 20.5
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -58,5 +56,5 @@ jobs:
with:
version: latest

- run: supabase link --project-ref $SUPABASE_PROJECT_ID
- run: supabase db push
- run: yarn workspace @twilio-paste/backend supabase link --project-ref $SUPABASE_PROJECT_ID
- run: yarn workspace @twilio-paste/backend supabase db push
2 changes: 0 additions & 2 deletions .github/workflows/on_pull_request_supabase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
with:
fetch-depth: 0

- uses: nrwl/nx-set-shas@v3

- name: Setup Node.js 20.5
uses: actions/setup-node@v3
with:
Expand Down
6 changes: 4 additions & 2 deletions apps/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ Uses Supabase. You need docker running locally to start local dev. You only need

Note: all scripts assume the backend directory is the current working directory.

Generating migrations when you've edited the DB in the console.
Generating migrations when you've edited the DB in the Supabase console.

```
yarn supabase db diff --use-migra name_of_migration -f name_of_migration
```

Reset db after migration to test migration files
Reset db after migration to test migration files. Migration files are generated by the supabase db when you make changes and run the above command.

https://supabase.com/docs/guides/cli/managing-environments?environment=production#create-a-new-migration

```
yarn supabase db reset
Expand Down

0 comments on commit 9a0a3b6

Please sign in to comment.