Was trying to define the primary key twice
This commit is contained in:
parent
d33c43958a
commit
46ebd38d6b
1 changed files with 0 additions and 1 deletions
|
@ -20,7 +20,6 @@ class CreateMediaEndpointTable extends Migration
|
||||||
$table->unsignedInteger('note_id')->nullable();
|
$table->unsignedInteger('note_id')->nullable();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->primary('id');
|
|
||||||
$table->index('token');
|
$table->index('token');
|
||||||
$table->foreign('note_id')->references('id')->on('notes');
|
$table->foreign('note_id')->references('id')->on('notes');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue