diff --git a/database/migrations/2018_10_18_035552_update_media_add_alt_text.php b/database/migrations/2018_10_18_035552_update_media_add_alt_text.php new file mode 100644 index 00000000..b671b5fc --- /dev/null +++ b/database/migrations/2018_10_18_035552_update_media_add_alt_text.php @@ -0,0 +1,40 @@ +string('license')->nullable()->after('filter_class'); + $table->boolean('is_nsfw')->default(false)->after('user_id'); + $table->tinyInteger('version')->default(1); + $table->boolean('remote_media')->default(false)->after('is_nsfw'); + $table->string('remote_url')->nullable()->after('thumbnail_url'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('media', function (Blueprint $table) { + $table->dropColumn('license'); + $table->dropColumn('is_nsfw'); + $table->dropColumn('version'); + $table->dropColumn('remote_media'); + $table->dropColumn('remote_url'); + }); + } +}