|
@@ -18,7 +18,7 @@ return new class extends Migration
|
|
|
$table->string("isbn")->nullable();
|
|
|
$table->year("year")->nullable();
|
|
|
$table->smallInteger("pagecount")->unsigned()->nullable();
|
|
|
- $table->foreignId("authors");
|
|
|
+ $table->foreignId("author_id")->constrained();
|
|
|
$table->timestamps();
|
|
|
});
|
|
|
}
|