Laravel-mongodb: Laravel 5.1 Migration table not found.

Created on 22 Jul 2015  路  1Comment  路  Source: jenssegers/laravel-mongodb

$ php artisan migrate:refresh
Migration table not found.
Migration table created successfully.
Nothing to migrate.

    //debug
    /vendor/laravel/framework/Illuminate/Database/Migrations/DatabaseMigrationRepository.php
    public function repositoryExists()
    {
            $schema = $this->getConnection()->getSchemaBuilder();

            var_dump($schema->hasTable($this->table));
            var_dump($schema->hasCollection($this->table));

            return $schema->hasTable($this->table);
    }

result:
bool(false)
bool(false)

Most helpful comment

Do you have a key with the name of the migration table in your ./config/database.php ?

'migrations' => 'migrations',

The refresh command works fine for me in Lumen 5.1.

>All comments

Do you have a key with the name of the migration table in your ./config/database.php ?

'migrations' => 'migrations',

The refresh command works fine for me in Lumen 5.1.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HassanIbrahim picture HassanIbrahim  路  3Comments

kschethan picture kschethan  路  3Comments

sebastiaanluca picture sebastiaanluca  路  3Comments

ghost picture ghost  路  3Comments

viacheslavpleshkov picture viacheslavpleshkov  路  3Comments