mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-07-30 09:48:47 -04:00
Remove outdated "self update" policy from profiles table schema
This commit is contained in:
@@ -85,12 +85,6 @@ DROP POLICY IF EXISTS "public read" ON profiles;
|
||||
CREATE POLICY "public read" ON profiles
|
||||
FOR SELECT USING (true);
|
||||
|
||||
DROP POLICY IF EXISTS "self update" ON profiles;
|
||||
|
||||
CREATE POLICY "self update" ON profiles
|
||||
FOR UPDATE
|
||||
WITH CHECK ((user_id = firebase_uid()));
|
||||
|
||||
-- Indexes
|
||||
CREATE INDEX IF NOT EXISTS profiles_user_id_idx ON public.profiles USING btree (user_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user