Skip to content

Commit 60ccc05

Browse files
Drop old affiiate views and policies
1 parent 191be15 commit 60ccc05

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- Drop existing views and types
2+
DROP VIEW IF EXISTS affiliate_referrals;
3+
4+
DROP VIEW IF EXISTS affiliate_stats_summary;
5+
6+
DROP TYPE IF EXISTS affiliate_referral_type;
7+
8+
DROP TYPE IF EXISTS affiliate_stats_summary_type;
9+
10+
-- Drop policies (they'll be replaced by function-level security)
11+
DROP POLICY IF EXISTS "Users can see referrals they've made" ON referrals;
12+
13+
DROP POLICY IF EXISTS "Users can see own and referrals affiliate stats" ON affiliate_stats;
14+

0 commit comments

Comments
 (0)