-
Notifications
You must be signed in to change notification settings - Fork 326
Closed as duplicate of#792
Closed as duplicate of#792
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
- [ X ] I confirm this is a bug with Supabase, not with my own application.
- [ X ] I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
When creating a view remotely (supabase.com) with the security_invoker = true option, migrations to be applied locally do not come with this option.
To Reproduce
- Create a view remotely (supabase.com)
CREATE VIEW test_security WITH (security_invoker) as SELECT 2 as value;- Locally pull migrations
supabase db pull- Note that migrations do not come with the
security invoker = trueoption
+ create or replace view "public"."test_security" as SELECT 2 AS value;
- create or replace view "public"."test_security" WITH ("security_invoker"='true') as SELECT 2 AS value;Expected behavior
The migration should go like this:
create or replace view "public"."test_security" WITH ("security_invoker"='true') as SELECT 2 AS value;System information
- OS: Windows
- Version of supabase-js: 2.39.3
- Version of Node.js: v18.18.2
igorlanko, TSIA-SN, desinox, wiglo-admin, chalkygames123 and 2 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done