@rocapine/community 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocapine/community",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "CLI to install, upgrade and adopt the Rocapine Community SDK's Supabase backend (migrations, Edge Functions) into a project.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,8 @@
1
+ -- community-sdk reaction/003_retract.sql
2
+ -- A reaction can be withdrawn, like a like: the client deletes its own row.
3
+ -- Until now only select/insert existed, so a delete() was a silent no-op.
4
+ -- The coalesced push only reads rows still present, so a reaction withdrawn
5
+ -- before the digest runs is never announced.
6
+ drop policy if exists "unreact own" on public.post_reactions;
7
+ create policy "unreact own" on public.post_reactions for delete to authenticated
8
+ using (user_id = auth.uid());