added color to mastertasks

This commit is contained in:
StudioTem committed 2023-01-27 10:13:11 +01:00
1 parent 28629dcf3a
commit ca26843406
4 files changed
+39

No files matched your search

@@ -38,6 +38,7 @@ class MasterTaskFactory extends Factory
'tracked_time' => fake()->numberBetween(4,20),
'deadline' => fake()->dateTimeBetween('now', '+3 weeks'),
'is_finished' => 0,
'color' => fake()->randomElement(['#E9FFE5', '#F6ECD3', '#FDE1FF', '#FFC9C9', '#DADEF8', '#EDFFFE']),
];
}
}
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('master_tasks', function (Blueprint $table) {
$table->string('color')->after('is_finished');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('master_task', function (Blueprint $table) {
//
});
}
};