-
Notifications
You must be signed in to change notification settings - Fork 389
Description
php artisan iseed
BadMethodCallException
Method Illuminate\Database\Schema\SQLiteBuilder::listTableNames does not exist.
at vendor\laravel\framework\src\Illuminate\Macroable\Traits\Macroable.php:115
111▕ */
112▕ public function __call($method, $parameters)
113▕ {
114▕ if (! static::hasMacro($method)) {
➜ 115▕ throw new BadMethodCallException(sprintf(
116▕ 'Method %s::%s does not exist.', static::class, $method
117▕ ));
118▕ }
119▕
1 vendor\orangehill\iseed\src\Orangehill\Iseed\Iseed.php:433
Illuminate\Database\Schema\Builder::__call("listTableNames", [])
2 vendor\orangehill\iseed\src\Orangehill\Iseed\IseedCommand.php:59
Orangehill\Iseed\Iseed::getAllTableNames()
I used :
public function getAllTableNames()
{
// Depending on your Laravel version, you may use the Doctrine schema manager:
//$schema = \DB::connection($this->databaseName)->getDoctrineSchemaManager();
//return $schema->listTableNames();
$schema = \DB::connection($this->databaseName)->getSchemaBuilder();
return $schema->getTableListing();
}