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'); + }); + } +}; +