From 13f77a0fc7085820b02e96789106b259dd4a8db2 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 5 Oct 2024 21:51:45 -0600 Subject: [PATCH] Create 2024_10_06_035032_modify_caption_field_in_media_table.php --- ...32_modify_caption_field_in_media_table.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 database/migrations/2024_10_06_035032_modify_caption_field_in_media_table.php 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(); + }); + } +};