From 89346781238b0bb4f3fec596a1c4743d27900600 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 3 Feb 2019 14:50:45 -0700 Subject: [PATCH] Add db migration --- ..._01_023357_add_remote_to_avatars_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2019_02_01_023357_add_remote_to_avatars_table.php diff --git a/database/migrations/2019_02_01_023357_add_remote_to_avatars_table.php b/database/migrations/2019_02_01_023357_add_remote_to_avatars_table.php new file mode 100644 index 000000000..e4b064f14 --- /dev/null +++ b/database/migrations/2019_02_01_023357_add_remote_to_avatars_table.php @@ -0,0 +1,34 @@ +string('remote_url')->nullable()->index()->after('thumb_path'); + $table->timestamp('last_fetched_at')->nullable()->after('change_count'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('avatars', function (Blueprint $table) { + $table->dropColumn('remote_url'); + $table->dropColumn('last_fetched_at'); + }); + } +}