Xethron / migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
3.33k stars 588 forks source link

Call DB::getTablePrefix() without using connection() lead to error #169

Open chasewwy opened 6 years ago

chasewwy commented 6 years ago

In Xethron\MigrationsGenerator\Syntax\Table:24

$table = substr($table, strlen(\DB::getTablePrefix()));

should be

$table = substr($table, strlen(\DB::connection($connection)->getTablePrefix()));