I want to ask how to fix this error in laravel heroku hosting in my local I was using mysql but in heroku I switched to postgres and I get those errors while migrating.
In Connection.php line 678:
SQLSTATE[42704]: Undefined object: 7 ERROR: data type json has no default operator class for access method "btree"
HINT: You must specify an operator class for the index or define a default operator class for the data type. (SQL: alter table "functions" add constraint "functions_function_elements_unique" unique ("function_elements"))
In Connection.php line 471:
SQLSTATE[42704]: Undefined object: 7 ERROR: data type json has no default operator class for access method "btree"
HINT: You must specify an operator class for the index or define a default operator class for the data type.