Premiere commit - Omika

This commit is contained in:
2026-10-23 18:46:50 +02:00
commit 8ea76c1b24
2155 changed files with 984301 additions and 0 deletions
@@ -0,0 +1,24 @@
-- ============================================================
-- Omika Diagnostic Center -- 013_diagnostics_tasks_delete.sql
-- T25 : autorise la suppression d'une tâche de traitement (V2).
-- ============================================================
-- TO RUN ON SRV-OMIKA as PostgreSQL superuser (e.g. psql -U postgres -d <base> -f 013_...),
-- AFTER 012 (table diagnostics_tasks + rôles Web).
--
-- Guarantees :
-- - PostgreSQL 18 compatible.
-- - Idempotent : re-running is a no-op (GRANT is idempotent).
-- - Non destructive : NO DROP, NO DELETE/TRUNCATE, no data removal.
-- - NO password, NO secret.
--
-- Jusqu'en V1, aucune suppression physique n'était prévue : 012 n'accordait AUCUN
-- DELETE. La V2 ajoute un bouton « Supprimer » sur /Taches : on accorde DELETE au
-- seul rôle Web (moindre privilège). L'API (omika_diagnostics_api) et le Worker
-- (omika_diagnostics_worker) n'ont TOUJOURS aucun droit de suppression.
-- ============================================================
GRANT DELETE ON TABLE diagnostics_tasks TO omika_diagnostics_web;
-- ============================================================
-- END 013. Ordre serveur : 001 -> 002 -> ... -> 012 -> 013.
-- ============================================================