diff --git a/database/migrations/2018_04_22_233721_create_web_subs_table.php b/database/migrations/2018_04_22_233721_create_web_subs_table.php new file mode 100644 index 000000000..cd91ca4d1 --- /dev/null +++ b/database/migrations/2018_04_22_233721_create_web_subs_table.php @@ -0,0 +1,36 @@ +bigIncrements('id'); + $table->bigInteger('follower_id')->unsigned()->index(); + $table->bigInteger('following_id')->unsigned()->index(); + $table->string('profile_url')->index(); + $table->timestamp('approved_at')->nullable(); + $table->unique(['follower_id', 'following_id', 'profile_url']); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('web_subs'); + } +}