From b4e397776af26aa40c413b63110b0145a1315904 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 1 Mar 2019 19:36:06 -0700 Subject: [PATCH] Add migration --- ...dd_profile_id_to_status_hashtags_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2019_03_02_023245_add_profile_id_to_status_hashtags_table.php diff --git a/database/migrations/2019_03_02_023245_add_profile_id_to_status_hashtags_table.php b/database/migrations/2019_03_02_023245_add_profile_id_to_status_hashtags_table.php new file mode 100644 index 000000000..070071f26 --- /dev/null +++ b/database/migrations/2019_03_02_023245_add_profile_id_to_status_hashtags_table.php @@ -0,0 +1,32 @@ +bigInteger('profile_id')->unsigned()->nullable()->index()->after('hashtag_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('status_hashtags', function (Blueprint $table) { + $table->dropColumn('profile_id'); + }); + } +}