Skip to content

Method Illuminate\Database\Schema\SQLiteBuilder::listTableNames does not exist. #256

@ManueldG

Description

@ManueldG

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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions