From d6f707085d93d240de06b3dd6eb6b8fff6269141 Mon Sep 17 00:00:00 2001 From: JOSEPH LE Date: Wed, 18 Sep 2024 09:39:52 +0700 Subject: [PATCH] update init data --- ...24_09_12_083311_create_criterias_table.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/BACKEND/database/migrations/2024_09_12_083311_create_criterias_table.php b/BACKEND/database/migrations/2024_09_12_083311_create_criterias_table.php index 4735a0a..a60bc84 100644 --- a/BACKEND/database/migrations/2024_09_12_083311_create_criterias_table.php +++ b/BACKEND/database/migrations/2024_09_12_083311_create_criterias_table.php @@ -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', + ], + ]); } /**