From 9577cb3aeefe962e00840a00f4346bd6b5fae99d Mon Sep 17 00:00:00 2001 From: Michal Feher Date: Thu, 19 Dec 2024 13:03:23 +0100 Subject: [PATCH] no message --- be/app/Http/Resources/SubTaskResource.php | 1 + ..._12_19_115557_add_location_to_subtasks.php | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 be/database/migrations/2024_12_19_115557_add_location_to_subtasks.php 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) { + // + }); + } +};