-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from hypercerts-org/fix/generated_types
chore(update): supabase npm package
- Loading branch information
Showing
6 changed files
with
73 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: roll out supabase migration | ||
name: roll out supabase migration to production | ||
on: | ||
push: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: roll out supabase migration | ||
name: roll out supabase migration to staging | ||
on: | ||
push: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: verify supabase types | ||
on: | ||
pull_request: | ||
|
||
env: | ||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | ||
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }} | ||
# Retrieve <project-id> from dashboard url: https://app.supabase.com/project/<project-id> | ||
PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }} | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: supabase/setup-cli@v1 | ||
with: | ||
version: latest | ||
|
||
- name: Start Supabase local development setup | ||
run: supabase start | ||
|
||
- name: Verify generated types are checked in | ||
run: | | ||
supabase gen types typescript --local > src/types/database-generated.types.ts | ||
if ! git diff --ignore-space-at-eol --exit-code --quiet ./src/types/database-generated.types.ts; then | ||
echo "Detected uncommitted changes after build. See status below:" | ||
git diff | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
supabase/migrations/20240830131559_enable_realtime_tables.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- remove the supabase_realtime publication | ||
drop | ||
publication if exists supabase_realtime; | ||
|
||
-- re-create the supabase_realtime publication with no tables | ||
create publication supabase_realtime; | ||
|
||
-- add a table called 'messages' to the publication | ||
-- (update this to match your tables) | ||
alter | ||
publication supabase_realtime add table allow_list_data; | ||
alter | ||
publication supabase_realtime add table attestations; | ||
alter | ||
publication supabase_realtime add table claims; | ||
alter | ||
publication supabase_realtime add table fractions; | ||
alter | ||
publication supabase_realtime add table hypercert_allow_list_records; | ||
alter | ||
publication supabase_realtime add table hypercert_allow_lists; | ||
alter | ||
publication supabase_realtime add table metadata; | ||
alter | ||
publication supabase_realtime add table sales; |