I can migrate this database with the database flag on the migrate command like so php artisan migrate --database=mysql_testing
After installing this library and migrating the database, I discovered that new migrations kept throwing the Base Table or View already exists error and it kept fingering the views table.
Even when I decided to do a migrate:fresh, I got the same error.
Then I went into the database migration that the library published and modified it like so
Description:
I have a MySQL test database whose connection is specified in
config/database.php
like soI can migrate this database with the database flag on the
migrate
command like sophp artisan migrate --database=mysql_testing
After installing this library and migrating the database, I discovered that new migrations kept throwing the
Base Table or View already exists
error and it kept fingering theviews
table.Even when I decided to do a
migrate:fresh
, I got the same error.Then I went into the database migration that the library published and modified it like so
Now everything works fine.
Screenshots attached
So my guess is that
Schema::conection
defined in the migration's constructor does not respect the database flag passed into the artisan command.