Update 5.8.35 to latest

I learned that autoupdate does not work. So I reasearched and chencged php to 8.2
Then ran update using mac client. Got errors:

2023_12_10_110951_inbound_mail_parsing … 3.73ms FAIL

In Connection.php line 825:

SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name ‘inbound_mailbox_allow_vendors’ (Connection: mysql, SQL: alter tabl
e companies add inbound_mailbox_allow_vendors tinyint(1) not null default ‘0’)

In Connection.php line 571:

SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name ‘inbound_mailbox_allow_vendors’

I commented out all in 2023_12_10_110951_inbound_mail_parsing.php
$table->boolean(“expense_mailbox_active”) etc.

ran: php artisan migrate
it was success.

Is this correct way to solve it?

Yes, that’s the correct solution