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