smart_ide/services/docv/docv-back/migrations/20260403120000_folders_dp_layout.sql
Nicolas Cantu 01860b7af7 chore: remove gitmodules, add docv workspace crates, update systemd README
- Drop .gitmodules (ia_dev tracked as submodule pointer without file)
- Add services/docv Cargo workspace: docv-back, docv-shared, migrations, sources
- Refresh systemd/README.md
2026-04-03 17:55:50 +02:00

10 lines
409 B
SQL

-- Dossiers permanents types : lien BDD ↔ arborescence data/dossiers-permanents
ALTER TABLE folders ADD COLUMN IF NOT EXISTS dp_archetype TEXT;
ALTER TABLE folders ADD COLUMN IF NOT EXISTS dp_layout_root TEXT;
ALTER TABLE folder_documents ADD COLUMN IF NOT EXISTS dp_mirror_path TEXT;
CREATE INDEX IF NOT EXISTS idx_folders_dp_layout_root ON folders(dp_layout_root)
WHERE dp_layout_root IS NOT NULL;