diff --git a/BACKEND/database/migrations/2025_05_07_062606_add_day_work_special_category.php b/BACKEND/database/migrations/2025_05_07_062606_add_day_work_special_category.php new file mode 100644 index 0000000..c73131d --- /dev/null +++ b/BACKEND/database/migrations/2025_05_07_062606_add_day_work_special_category.php @@ -0,0 +1,40 @@ +insert([ + 'c_code' => '17-05-2025', + 'c_name' => 'Ngày làm việc đặc biệt', + 'c_type' => 'DAY_WORK_SPECIAL', + 'c_value' => '2025', + 'c_active' => 1, + 'created_at' => now(), + 'updated_at' => now(), + ]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + DB::table('categories') + ->where('c_code', '17-05-2025') + ->where('c_type', 'DAY_WORK_SPECIAL') + ->delete(); + } +}