awssat / laravel-sync-migration

Developer tool helps to sync migrations without refreshing the database
MIT License
108 stars 13 forks source link

Base table or view not found when using a database prefix #1

Closed ebesh closed 6 years ago

ebesh commented 6 years ago

Hi,

Thanks for your great idea. I have a small issue with laravel-sync-migration in a project which uses database prefixes (parameter "prefix" in database config).

In my case, here is my config line for mysql : 'prefix' => 'age_',

When I launch the command php artisan migrate:sync

I have the following error : Illuminate\Database\QueryException : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'agence_a.users' doesn't exist (SQL: DESCRIBE users)

where 'agence_a.users' should be 'agence_a.age_users'

Not sure of the way to fix it, some help will be welcolme ;)

Thanks a lot.

BSN4 commented 6 years ago

Thanks for reporting I'll push a fix soon