Initial commit from v0

This commit is contained in:
v0
2026-03-11 04:44:48 +00:00
commit 296c5dd78d
123 changed files with 21242 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
-- 008: Set approved default to true so new members don't get locked out
-- The approved column was added without a default, meaning it defaults to NULL.
-- Queries filtering eq('approved', true) would silently return zero rows.
-- Fix: set the default to true so any insert that doesn't specify it gets approved automatically.
ALTER TABLE public.space_members
ALTER COLUMN approved SET DEFAULT true;
-- Also backfill existing members who have null approved
UPDATE public.space_members
SET approved = true
WHERE approved IS NULL;