-
Notifications
You must be signed in to change notification settings - Fork 5
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 #11 from dartilesm/fix/feedback-table
fix(Root): feedback table and permissions
- Loading branch information
Showing
6 changed files
with
39 additions
and
208 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 was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
packages/supabase/src/supabase/migrations/20241109155454_auto-remove-document-file.sql
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
packages/supabase/src/supabase/migrations/20241121030700_remote_schema.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,14 @@ | ||
alter table "public"."Feedback" alter column "id" set default gen_random_uuid(); | ||
|
||
alter table "public"."Feedback" alter column "id" set data type uuid using "id"::uuid; | ||
|
||
alter table "public"."Feedback" alter column "updatedAt" set default now(); | ||
|
||
alter table "public"."Feedback" alter column "updatedAt" set data type timestamp with time zone using "updatedAt"::timestamp with time zone; | ||
|
||
create policy "Authenticated users can insert a feedback." | ||
on "public"."Feedback" | ||
as permissive | ||
for insert | ||
to authenticated | ||
with check ((( SELECT auth.uid() AS uid) = "userId")); |
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