(Feat) V2

This commit is contained in:
2026-07-01 15:44:20 +02:00
parent 9789100334
commit 2a5d9bb0fd
10 changed files with 285 additions and 52 deletions
+11
View File
@@ -143,3 +143,14 @@ create policy avatars_update on storage.objects
for update to authenticated using (bucket_id = 'avatars');
create policy avatars_delete on storage.objects
for delete to authenticated using (bucket_id = 'avatars');
-- ---------------------------------------------------------------------
-- v7 — Plusieurs pôles par tâche
-- ---------------------------------------------------------------------
alter table public.tasks
add column if not exists poles member_role[] not null default '{}';
-- Reprend le pôle unique existant dans le tableau (si présent).
update public.tasks
set poles = array[pole]
where pole is not null and poles = '{}';