update init data

This commit is contained in:
JOSEPH LE 2024-09-18 09:39:52 +07:00
parent 309d949faf
commit d6f707085d
1 changed files with 35 additions and 0 deletions

View File

@ -2,6 +2,7 @@
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
@ -18,6 +19,40 @@ return new class extends Migration
$table->string('type');
$table->timestamps();
});
// Insert init data
DB::table('criterias')->insert([
[
'name' => 'Deadline',
'description' => 'Is the sprint progressing on schedule?',
'type' => 'SPRINT',
],
[
'name' => 'Story point',
'description' => 'Is the sprint on track to complete the planned story points?',
'type' => 'SPRINT',
],
[
'name' => 'Demo - Function',
'description' => 'Did the features implemented in the sprint work well during the demo?',
'type' => 'SPRINT',
],
[
'name' => 'Code quality',
'description' => 'Did the code produce any bugs during testing?',
'type' => 'SPRINT',
],
[
'name' => 'Level of task completion',
'description' => 'Is the team member ensuring the task is completed on schedule?',
'type' => 'MEMBER',
],
[
'name' => 'Code quality',
'description' => 'Number of bugs arising from the team member\'s task',
'type' => 'MEMBER',
],
]);
}
/**