diff --git a/database/migrations/2025_01_31_204732_add_optional_data_column_to_students_table.php b/database/migrations/2025_01_31_204732_add_optional_data_column_to_students_table.php new file mode 100644 index 0000000..f003abb --- /dev/null +++ b/database/migrations/2025_01_31_204732_add_optional_data_column_to_students_table.php @@ -0,0 +1,28 @@ +json('optional_data')->nullable()->after('grade'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('students', function (Blueprint $table) { + $table->dropColumn('optional_data'); + }); + } +};