From 1e16e18ae619bbd06e54e578d53347917b664ea8 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 20 Oct 2018 21:45:00 -0600 Subject: [PATCH] Add new migration --- ...10_18_035552_update_media_add_alt_text.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 database/migrations/2018_10_18_035552_update_media_add_alt_text.php 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 000000000..b671b5fcd --- /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'); + }); + } +}