Skip to content

create empty pivot table #189

@johnef

Description

@johnef
  • Laravel Version: 5.8.13
  • PHP Version: 7.1.3
  • Laravel-5-Generators-Extended Version:
  • Command: php artisan make:migration:pivot cities suppliers

What I did

I am trying to run php artisan make:migration:pivot cities suppliers

What happened

ya sure it created the migration witch looks like this 2020_08_27_030342_create__pivot_table.php
and inside the migration file all the fields empty something like this

Schema::create('', function (Blueprint $table) {
            $table->integer('_id')->unsigned()->index();
            $table->foreign('_id')->references('id')->on('')->onDelete('cascade');
            $table->integer('_id')->unsigned()->index();
            $table->foreign('_id')->references('id')->on('')->onDelete('cascade');
            $table->primary(['_id', '_id']);
        });

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