mchev
acbb1f040c
fix(migrations): align FK column types with users/companies id on MySQL ( #618 )
...
Laravel foreignId() creates BIGINT UNSIGNED columns, but users.id and
companies.id use increments() (INT UNSIGNED). MySQL 8 rejects foreign keys
when referencing and referenced column types differ (error 3780).
Use unsignedInteger for impersonation_logs admin_id/user_id and for
company_invitations company_id, user_id, and invited_by. Keep foreignId
for role_id since roles.id is bigIncrements.
This fixes upgrades from v2 on MySQL when running v3.0 migrations.
Made-with: Cursor
2026-06-12 14:43:27 +02:00
..
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2025-01-12 18:37:08 +01:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2026-04-10 15:56:31 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2026-03-21 18:59:53 +01:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2025-01-12 18:37:08 +01:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2026-03-21 18:59:53 +01:00
2024-02-17 23:51:21 +02:00
2024-04-20 23:08:32 +02:00
2026-03-21 18:59:53 +01:00
2024-06-05 11:33:52 +02:00
2024-06-05 11:33:52 +02:00
2024-07-28 23:14:34 +02:00
2024-07-28 22:46:45 +02:00
2024-07-28 22:46:45 +02:00
2024-07-17 12:06:04 +02:00
2024-07-17 12:06:04 +02:00
2025-01-12 13:32:47 +01:00
2024-10-04 12:07:29 +02:00
2024-11-02 12:20:55 +01:00
2025-05-04 02:24:56 +02:00
2025-04-05 12:01:06 +02:00
2025-04-05 00:43:34 +02:00
2025-08-28 10:28:24 +02:00
2025-08-28 10:28:24 +02:00
2025-08-28 10:28:24 +02:00
2025-08-28 14:13:03 +02:00
2025-09-02 03:20:27 +02:00
2026-01-01 17:50:31 +01:00
2026-06-12 14:43:27 +02:00
2026-04-03 22:33:56 +02:00
2026-06-12 14:43:27 +02:00
2026-04-10 15:56:31 +02:00
2026-04-12 08:00:00 +02:00