I'm trying to deploy an existing project into a new AWS environment, with Postgresql via RDS, and I need Laravel to create the migrations table in the database, so that I can then run my migrations.
When I issue the "php artisan migrate:install" command, I get the following error:
SQLSTATE[3F000]: Invalid schema name: 7 ERROR: no schema has been selected to create in at character 14 (SQL: create table "migrations" ("id" serial primary key not null, "migration" varchar(255) not null, "batch" integer not null))
This is despite the correct schema being specified in config/database.php.
I've also tried setting the search_path for both the database and the role to only include the correct schema but it makes no difference.
I could probably fudge this by editing Laravel's core code to change the table name to "schema.migrations" but that's a nasty kludge and would rather fix this the right way.
I am using Laravel 5.7.