Migrations giving error 42000

Asked

Viewed 41 times

0

I’m trying to spin mine Migrations (php Artisan migrate) inside my docker container. I’m using Lumen to develop my API. I don’t know what could be going on:

inserir a descrição da imagem aqui

What might be going on? I’ve refilled my Migrations and nothing has changed.

  • 1

    It seems that the name of the table is empty.

1 answer

1

You are not setting the name of your table in your Migrations, see that 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 structure for you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.