mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
deadline for subtasks
This commit is contained in:
1 parent
59a6bc56e3
commit
22c5be9f26
2 files changed
+33
No files matched your search
@@ -28,6 +28,7 @@ class SubTaskResource extends JsonResource
|
|||||||
'employee_id' => $this->user->id,
|
'employee_id' => $this->user->id,
|
||||||
'duration' => $this->estimated_time,
|
'duration' => $this->estimated_time,
|
||||||
'spent_time' => $this->tracked_time,
|
'spent_time' => $this->tracked_time,
|
||||||
|
'deadline' => $this->deadline,
|
||||||
'is_finished' => $this->is_finished,
|
'is_finished' => $this->is_finished,
|
||||||
'timeblocks' => TimeblockResource::collection($this->timeblocks),
|
'timeblocks' => TimeblockResource::collection($this->timeblocks),
|
||||||
'timesheets' => TimesheetResource::collection($this->timesheets),
|
'timesheets' => TimesheetResource::collection($this->timesheets),
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('sub_tasks', function (Blueprint $table) {
|
||||||
|
$table->timestamp('deadline')->after('tracked_time')->default(NULL);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::table('subtasks', function (Blueprint $table) {
|
||||||
|
//
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in new issue
Block a user