fix project_id field in Label
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Failing after 2m0s
Details
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Failing after 2m0s
Details
This commit is contained in:
parent
7901346eb9
commit
d05007b21e
|
@ -13,7 +13,7 @@ class Label extends Model
|
|||
protected $fillable = [
|
||||
'id',
|
||||
'name',
|
||||
'department_id',
|
||||
'project_id',
|
||||
'created_by_id',
|
||||
];
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ return new class extends Migration
|
|||
Schema::create('labels', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name', 255);
|
||||
$table->foreignId('project_id')->constrained('projects');
|
||||
$table->foreignId('project_id')->nullable()->constrained('projects');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue