Migrations giving error 42000

0

I'm trying to run my migrations (php artisan migrate) inside my container Docker . I'm using Lumen to develop my API . I do not know what might be happening:

What can be happening? I have refitted my migrations and nothing has changed.

    
asked by anonymous 25.01.2018 / 13:06

1 answer

0

You are not setting the name of your table in your migrations, see the model according to the laravel doc.

Ex:

Schema::create('users', function (Blueprint $table) {
    $table->increments('id');
});

One tip is that when creating your migration, use --create=nome_da_tabela it will create the basic framework for you.

    
26.01.2018 / 17:38