diff --git a/database/migrations/2024_10_06_035032_modify_caption_field_in_media_table.php b/database/migrations/2024_10_06_035032_modify_caption_field_in_media_table.php new file mode 100644 index 000000000..9468e5344 --- /dev/null +++ b/database/migrations/2024_10_06_035032_modify_caption_field_in_media_table.php @@ -0,0 +1,28 @@ +text('caption')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('media', function (Blueprint $table) { + $table->text('caption')->nullable(false)->change(); + }); + } +};