I've successfully renamed an existing column previously created in a different migration with the following line of code:
$table->renameColumn('custom_paper_note', 'custom_primary_paper_note');
However, now when I run php artisan migrate:refresh
I get the following errors:
[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'custom_paper_note'; check that column/key exists (SQL: alter table `line_items` drop `custom_paper_note`)
and
[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'custom_paper_note'; check that column/key exists
which all makes good sense to me because I renamed the column and now it can't drop it during the migrate:refresh process. However, I don't understand how to go about fixing this error?
Thanks for your help.