Hello Sir,
I want to deploy my laravel site on heroku but as I run command "heroku run php artisan migrate" following error appear -> "sqlstate[42703] undefined column 7 error" in Connection.php
in Connection.php line 644:
SQLSTATE[42703] undefined column: 7 column:doctoravailabilityid does not exist (SQL:ALTER TABLE "consult_bookings" RENAME COLUMN doctoravailabilityId to doctorId)
in PDOStatement.php line 123:
SQLSTATE[42703] undefined column: 7 column:doctoravailabilityid does not exist
in PDOStatement.php line 121:
SQLSTATE[42703] undefined column: 7 column:doctoravailabilityid does not exist
I believe that mysql can be changed from case insensitive (default) to being case sensitive. My guess would be that you local machine isnt (it works) and Heruko is (does not work).
Change your migration to fit exactly with the naming. Perhaps consider in the future using _ to separate words
doctor_availability_id
Edit: Is heroku using postgresql? I think that is case sensitive by default