From 2011797dd6b46ec2b3f90fcdc1961ce3da00df5d Mon Sep 17 00:00:00 2001 From: Truong Vo <41848815+vmtruong301296@users.noreply.github.com> Date: Wed, 7 May 2025 13:28:14 +0700 Subject: [PATCH] =?UTF-8?q?B=E1=BB=95=20sung=20x=C3=B3a=20ng=C3=A0y=20ph?= =?UTF-8?q?=C3=A9p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7_062606_add_day_work_special_category.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 BACKEND/database/migrations/2025_05_07_062606_add_day_work_special_category.php 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(); + } +}