Set the calendar's daily capacity in the company details

The task calendar's daily maximum moves from the hidden setting
jobs.daily_capacity_hours to shared.daily_capacity_hours, edited by the
admin on the company details page. An empty field means 7.5 hours.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-25 11:00:35 +02:00
co-authored by Claude Sonnet 5.5
parent e0da863cf7
commit 7c605014c7
16 changed files with 245 additions and 23 deletions
@@ -0,0 +1,20 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
/**
* The calendar's daily capacity moves from Jobs to the company details (Shared).
*/
public function up(): void
{
DB::table('settings')->where('key', 'jobs.daily_capacity_hours')->update(['key' => 'shared.daily_capacity_hours']);
}
public function down(): void
{
DB::table('settings')->where('key', 'shared.daily_capacity_hours')->update(['key' => 'jobs.daily_capacity_hours']);
}
};