Vasyka
f484167b51
fix(migration): case-insensitive dedupe on units backfill + use insertOrIgnore
...
MariaDB default collation is case-insensitive on VARCHAR unique indexes,
so 'L' and 'l' clash on units_company_id_code_unique. When a tenant had
'L' in parts.unit (uppercase) and the migration seeds 'l' (lowercase),
the extras loop tried to re-insert 'L' and errored out — blocking all
subsequent migrations (including the new injector_protocols tables).
Fix: lowercase the comparison + switch the extras insert to
insertOrIgnore so a residual race is a no-op.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-07-26 11:39:34 +00:00
..
2026-05-04 12:19:55 +00:00
2026-05-04 12:19:55 +00:00
2026-05-05 21:29:52 +00:00
2026-05-05 21:29:52 +00:00
2026-05-05 21:29:52 +00:00
2026-05-05 21:29:52 +00:00
2026-05-05 21:29:52 +00:00
2026-05-05 21:29:52 +00:00
2026-05-06 17:36:32 +00:00
2026-05-06 17:36:32 +00:00
2026-05-06 17:36:32 +00:00
2026-05-06 17:36:32 +00:00
2026-05-06 21:24:07 +00:00
2026-05-06 21:24:07 +00:00
2026-05-06 21:24:07 +00:00
2026-05-06 21:58:30 +00:00
2026-05-06 21:58:30 +00:00
2026-05-06 21:58:30 +00:00
2026-05-06 21:58:30 +00:00
2026-05-06 22:55:50 +00:00
2026-05-07 04:55:33 +00:00
2026-05-07 07:10:25 +00:00
2026-05-07 09:52:01 +00:00
2026-05-07 09:52:01 +00:00
2026-05-07 12:51:19 +00:00
2026-05-07 14:50:56 +00:00
2026-05-07 15:30:04 +00:00
2026-05-07 18:22:48 +00:00
2026-05-07 19:25:27 +00:00
2026-05-07 19:25:27 +00:00
2026-05-07 22:02:44 +00:00
2026-05-07 22:02:44 +00:00
2026-05-08 05:55:30 +00:00
2026-05-27 19:21:23 +00:00
2026-05-27 19:29:19 +00:00
2026-05-28 22:39:34 +00:00
2026-05-27 20:14:17 +00:00
2026-05-28 05:11:18 +00:00
2026-05-28 05:27:51 +00:00
2026-05-28 05:40:27 +00:00
2026-05-28 06:16:50 +00:00
2026-05-28 06:33:00 +00:00
2026-05-28 06:43:15 +00:00
2026-05-28 06:49:47 +00:00
2026-06-02 19:43:39 +00:00
2026-06-04 20:02:44 +00:00
2026-06-04 21:50:22 +00:00
2026-06-04 22:03:03 +00:00
2026-06-04 22:27:20 +00:00
2026-06-04 22:36:44 +00:00
2026-06-05 04:56:06 +00:00
2026-06-05 04:56:06 +00:00
2026-06-05 05:15:01 +00:00
2026-06-05 05:31:50 +00:00
2026-06-06 07:24:15 +00:00
2026-06-06 07:34:27 +00:00
2026-07-07 09:44:46 +00:00
2026-07-07 19:39:51 +00:00
2026-07-13 04:56:04 +00:00
2026-07-26 11:39:34 +00:00
2026-07-26 10:54:00 +00:00
2026-07-26 11:27:53 +00:00