-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add support for claim display size in hyperboard rendering * add ui support and rls for updating display size
- Loading branch information
Showing
10 changed files
with
286 additions
and
123 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
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
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
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
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
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
3 changes: 3 additions & 0 deletions
3
...rations/20231122134241_remove_duplicate_foreign_key_constraints_hyperboard_registries.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,3 @@ | ||
alter table hyperboard_registries | ||
rename constraint hyperboard_registries_registry_id_fkey to hyperboard_registries_registries_id_fk; | ||
|
12 changes: 12 additions & 0 deletions
12
supabase/migrations/20231122144855_add_rls_policy_for_updating_claim_display_size.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,12 @@ | ||
create policy "Only allow for owner of registry" | ||
on "public"."claims" | ||
as permissive | ||
for update | ||
to public | ||
using (((auth.jwt() ->> 'address'::text) IN (SELECT hyperboards.admin_id | ||
FROM hyperboards | ||
JOIN public.hyperboard_registries hr on hyperboards.id = hr.hyperboard_id | ||
JOIN public.claims c on hr.registry_id = c.registry_id | ||
WHERE (hr.registry_id = c.registry_id)))); | ||
|
||
alter table "public"."claims" add column "display_size" bigint not null default '1'::bigint; |
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
Oops, something went wrong.