fix: contrained report to media task assignment
This commit is contained in:
parent
5aaf1d2ae5
commit
d188cf382c
@ -14,7 +14,7 @@ public function up(): void
|
|||||||
{
|
{
|
||||||
Schema::create('reports', function (Blueprint $table) {
|
Schema::create('reports', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('media_task_assignment_id')->constrained()->cascadeOnDelete();
|
$table->foreignId('media_task_assignment_id')->constrained('media_task_assignment')->cascadeOnDelete();
|
||||||
$table->string('title', 200);
|
$table->string('title', 200);
|
||||||
$table->date('publication_date')->index();
|
$table->date('publication_date')->index();
|
||||||
$table->string('link', 50);
|
$table->string('link', 50);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user