removed report_status
This commit is contained in:
parent
6bffd31f2f
commit
15d8ebf3c7
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use App\Domain\Report\ReportStatus;
|
|
||||||
use App\Domain\Study\Priority;
|
use App\Domain\Study\Priority;
|
||||||
use App\Domain\Study\WorkflowLevel;
|
use App\Domain\Study\WorkflowLevel;
|
||||||
use App\Models\Department;
|
use App\Models\Department;
|
||||||
@ -21,8 +20,7 @@ public function up(): void
|
|||||||
$table->foreignIdFor(Department::class)->nullable()->index();
|
$table->foreignIdFor(Department::class)->nullable()->index();
|
||||||
|
|
||||||
$table->unsignedTinyInteger('priority')->default(Priority::Routine->value);
|
$table->unsignedTinyInteger('priority')->default(Priority::Routine->value);
|
||||||
$table->unsignedTinyInteger('workflow_level')->default(WorkflowLevel::Pending->value);
|
$table->unsignedTinyInteger('workflow_level')->default(WorkflowLevel::Received->value);
|
||||||
$table->unsignedTinyInteger('report_status')->default(ReportStatus::Unread->value);
|
|
||||||
$table->boolean('requires_approval')->default(false);
|
$table->boolean('requires_approval')->default(false);
|
||||||
|
|
||||||
$table->string('orthanc_uuid')->index();
|
$table->string('orthanc_uuid')->index();
|
||||||
@ -73,7 +71,7 @@ public function up(): void
|
|||||||
$table->index(['department_id', 'assigned_at']);
|
$table->index(['department_id', 'assigned_at']);
|
||||||
$table->index(['department_id', 'locked_at']);
|
$table->index(['department_id', 'locked_at']);
|
||||||
|
|
||||||
$table->index(['requires_approval', 'report_status']);
|
$table->index(['requires_approval', 'workflow_level']);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user