diff --git a/be/app/Http/Resources/SubTaskResource.php b/be/app/Http/Resources/SubTaskResource.php index ef74185..2d66758 100644 --- a/be/app/Http/Resources/SubTaskResource.php +++ b/be/app/Http/Resources/SubTaskResource.php @@ -32,6 +32,7 @@ class SubTaskResource extends JsonResource 'duration' => $this->estimated_time, 'spent_time' => $this->tracked_time, 'deadline' => $this->deadline, + 'office365_location' => $this->office365_location, 'is_finished' => $this->is_finished, 'timeblocks' => TimeblockResource::collection($this->timeblocks), 'timesheets' => TimesheetResource::collection($this->timesheets), diff --git a/be/database/migrations/2024_12_19_115557_add_location_to_subtasks.php b/be/database/migrations/2024_12_19_115557_add_location_to_subtasks.php new file mode 100644 index 0000000..5e48b22 --- /dev/null +++ b/be/database/migrations/2024_12_19_115557_add_location_to_subtasks.php @@ -0,0 +1,31 @@ +string('office365_location')->after('deadline')->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('subtasks', function (Blueprint $table) { + // + }); + } +};