(Feat) V2
This commit is contained in:
@@ -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 = '{}';
|
||||
|
||||
Reference in New Issue
Block a user