mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
Prevent and remove zero values for billable rates
This commit is contained in:
committed by
Constantin Graf
parent
92dde6a701
commit
bd9cede081
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('organizations')
|
||||
->where('billable_rate', '=', 0)
|
||||
->update(['billable_rate' => null]);
|
||||
DB::table('project_members')
|
||||
->where('billable_rate', '=', 0)
|
||||
->update(['billable_rate' => null]);
|
||||
DB::table('projects')
|
||||
->where('billable_rate', '=', 0)
|
||||
->update(['billable_rate' => null]);
|
||||
DB::table('members')
|
||||
->where('billable_rate', '=', 0)
|
||||
->update(['billable_rate' => null]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user