Sacha Al Himdani
0b9686fc43
Prevent duplicate active document versions
...
Replace the draft-only unique index with one covering both DRAFT and
PENDING_APPROVAL statuses, ensuring a document can have at most one
active version at a time. Deduplicate any existing data before creating
the index, prioritizing PENDING_APPROVAL over DRAFT.
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com >
2026-04-15 14:39:27 +02:00
..
2026-04-13 19:24:46 +02:00
2026-03-30 14:18:29 +02:00
2026-03-13 18:24:02 +01:00
2026-03-25 17:38:32 +01:00
2026-03-25 17:38:32 +01:00
2026-03-25 17:38:32 +01:00
2026-04-08 11:05:12 +02:00
2026-04-03 11:56:06 +02:00
2026-04-02 14:37:29 +02:00
2026-04-14 15:01:20 +02:00
2026-04-13 19:24:46 +02:00
2026-04-15 10:21:00 +04:00
2026-04-15 14:39:27 +02:00
2026-03-25 17:38:32 +01:00
2026-04-09 13:06:06 +02:00
2026-04-13 12:25:42 +02:00
2026-03-31 13:31:30 +02:00
2026-04-03 11:56:06 +02:00
2026-03-26 17:34:04 +01:00
2026-03-31 19:16:56 +04:00
2026-03-25 17:38:32 +01:00
2026-03-25 17:38:32 +01:00
2026-04-13 17:14:01 +02:00
2026-04-13 18:25:11 +02:00
2026-03-25 17:38:32 +01:00
2026-04-13 12:25:42 +02:00
2026-04-13 12:25:42 +02:00
2026-03-25 17:38:32 +01:00
2026-04-15 14:05:34 +02:00
2026-04-15 10:21:01 +04:00
2026-04-09 14:47:48 +04:00
2026-04-02 14:37:29 +02:00
2026-03-31 10:51:34 +02:00
2026-03-25 17:38:32 +01:00
2026-03-25 17:38:32 +01:00
2026-04-15 16:27:31 +04:00
2026-04-13 19:24:46 +02:00
2026-03-25 17:38:32 +01:00
2026-04-02 14:37:29 +02:00
2026-04-03 11:56:06 +02:00
2026-04-15 10:21:01 +04:00
2026-03-25 17:38:32 +01:00
2026-03-25 17:38:32 +01:00
2026-04-13 17:14:01 +02:00