kolaente
44d3540340
fix(migration): quote index identifiers so the swap works on postgres
...
Postgres folds unquoted identifiers to lowercase. `DROP INDEX IF EXISTS
IDX_tasks_done_due_date` therefore looked for `idx_tasks_done_due_date` and
silently matched nothing whenever the index carried the mixed-case name xorm
gives it, and the companion CREATE stored the new index under a lowercase name
that a later sync would not recognise, creating a second copy.
Both statements now go through the dialect quoter, with CREATE built by
`CreateIndexSQL` so the name matches what xorm derives from the struct tag.
v2.6.0's migration had the same bug, so on postgres the old index is actually
named `idx_tasks_done_due_date` there. Drop both spellings.
Also fixes the test helper, which called XName on index names DBMetas had
already returned in full and so compared against a double-prefixed
`IDX_tasks_idx_tasks_project_done_due_date`.
2026-09-04 10:32:56 +02:00
..
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-08-27 20:34:29 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-02-24 14:29:49 +01:00
2026-07-26 13:42:33 +00:00
2026-01-05 22:30:10 +01:00
2025-11-28 15:57:54 +00:00
2026-07-26 13:42:33 +00:00
2026-02-24 14:29:49 +01:00
2026-07-26 13:42:33 +00:00
2026-02-24 14:29:49 +01:00
2026-02-24 14:29:49 +01:00
2026-03-23 16:45:50 +00:00
2026-02-25 12:15:28 +01:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-07-26 13:42:33 +00:00
2026-08-02 16:21:50 +02:00
2026-07-26 13:42:33 +00:00
2026-05-19 10:35:43 +02:00
2026-07-26 13:42:33 +00:00
2026-06-17 21:16:41 +00:00
2026-07-26 13:42:33 +00:00
2026-07-19 12:13:35 +02:00
2026-07-19 12:13:35 +02:00
2026-07-26 13:42:33 +00:00
2026-07-19 18:59:34 +02:00
2026-07-29 09:21:25 +02:00
2026-07-29 09:21:25 +02:00
2026-07-26 01:13:08 +00:00
2026-07-29 07:58:17 +00:00
2026-07-29 07:58:17 +00:00
2026-07-29 07:58:17 +00:00
2026-07-29 07:58:17 +00:00
2026-08-04 01:09:10 +02:00
2026-08-04 01:09:10 +02:00
2026-08-18 22:03:38 +02:00
2026-08-20 11:58:06 +02:00
2026-08-20 11:58:06 +02:00
2026-08-29 17:50:20 +02:00
2026-08-29 23:42:41 +02:00
2026-08-29 23:42:41 +02:00
2026-08-29 23:42:41 +02:00
2026-08-31 18:37:03 +02:00
2026-08-31 18:37:03 +02:00
2026-09-04 09:28:29 +02:00
2026-09-04 09:28:29 +02:00
2026-09-04 10:32:56 +02:00
2026-09-04 10:32:56 +02:00
2026-07-11 18:02:57 +02:00
2026-08-05 19:35:11 +02:00
2026-07-11 18:02:57 +02:00
2026-07-11 18:02:57 +02:00