From e7752196bc27ce723230b997d7cf3dcfb6c7d71e Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Sun, 4 Jan 2026 11:46:44 +0800 Subject: [PATCH] update --- ...114614_add_direction_to_teachers_table.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2026_01_04_114614_add_direction_to_teachers_table.php diff --git a/database/migrations/2026_01_04_114614_add_direction_to_teachers_table.php b/database/migrations/2026_01_04_114614_add_direction_to_teachers_table.php new file mode 100644 index 0000000..01d2133 --- /dev/null +++ b/database/migrations/2026_01_04_114614_add_direction_to_teachers_table.php @@ -0,0 +1,33 @@ +string('direction')->nullable()->after('remark')->comment('课程方向'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('teachers', function (Blueprint $table) { + $table->dropColumn('direction'); + }); + } +}; +