From 9051c1f998e979ebcacd5e9374ae6e7e80e4c512 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 24 Jan 2021 18:24:25 -0700 Subject: [PATCH] Add migration --- ...25_011355_add_cdn_url_to_avatars_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2021_01_25_011355_add_cdn_url_to_avatars_table.php diff --git a/database/migrations/2021_01_25_011355_add_cdn_url_to_avatars_table.php b/database/migrations/2021_01_25_011355_add_cdn_url_to_avatars_table.php new file mode 100644 index 000000000..5ce64e9ab --- /dev/null +++ b/database/migrations/2021_01_25_011355_add_cdn_url_to_avatars_table.php @@ -0,0 +1,34 @@ +string('cdn_url')->unique()->index()->nullable(); + $table->dropColumn('thumb_path'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('avatars', function (Blueprint $table) { + $table->dropColumn('cdn_url'); + $table->string('thumb_path')->nullable(); + }); + } +}