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:
@@ -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']);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user