From ec4febe5e980faf7344f14db5024176f84c44704 Mon Sep 17 00:00:00 2001 From: James Collins Date: Thu, 6 Apr 2023 21:12:12 +1000 Subject: [PATCH] added additional rows for media table --- ...add_storage_description_to_media_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2023_04_05_222458_add_storage_description_to_media_table.php diff --git a/database/migrations/2023_04_05_222458_add_storage_description_to_media_table.php b/database/migrations/2023_04_05_222458_add_storage_description_to_media_table.php new file mode 100644 index 0000000..4ef9f0d --- /dev/null +++ b/database/migrations/2023_04_05_222458_add_storage_description_to_media_table.php @@ -0,0 +1,34 @@ +string('storage')->default("cdn"); + $table->string('description')->default(""); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('media', function (Blueprint $table) { + $table->dropColumn('description'); + $table->dropColumn('storage'); + }); + } +};