I had 4.5.18 installed on a hostgator server and for some weird reasons they did some updates that messed everything up and I exported the db to local host. I installed php 7.4 and invoice ninja 4.5.50 and imported the db. Now I want to install in v5 but the migration from localhost on my pc always crashes on the taskstatus table with this error
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘0’ for key ‘PRIMARY’ (SQL: insert into task_statuses
(user_id
, account_id
, public_id
, name
, sort_order
, updated_at
, created_at
) values (1, 1, 2, Backlog, 0, 2024-06-05 22:47:04, 2024-06-05 22:47:04))
I tried resetting the autoincrement to 1 and inserting the data back even did the same in v5 and the same error keeps coming back. How do I bypass this because to me it seems like it’s data that is not that important for me.
This is what the table contained before I deleted everything from it
INSERT INTO task_statuses
(id
, user_id
, account_id
, created_at
, updated_at
, deleted_at
, name
, sort_order
, public_id
) VALUES
(0, 1, 1, ‘2024-06-05 19:42:23’, ‘2024-06-05 19:42:23’, NULL, ‘Backlog’, 0, 6),
(1, 1, 1, ‘2024-06-05 18:57:47’, ‘2024-06-05 18:57:47’, NULL, ‘Backlog’, 0, 5),
(2, 1, 1, ‘2021-02-08 17:51:06’, ‘2021-02-08 17:51:06’, NULL, ‘Backlog’, 0, 1),
(3, 1, 1, ‘2021-02-08 17:51:06’, ‘2021-02-08 17:51:06’, NULL, ‘Ready to do’, 1, 2),
(4, 1, 1, ‘2021-02-08 17:51:06’, ‘2021-02-08 17:51:06’, NULL, ‘In progress’, 2, 3),
(5, 1, 1, ‘2021-02-08 17:51:06’, ‘2021-02-08 17:51:06’, NULL, ‘Done’, 3, 4);
How do I proceed?