for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the sebastian-kennedy/laravel-follow.
*
* (c) SebastianKennedy <[email protected]>
* This source file is subject to the MIT license that is bundled.
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Class CreateFollowsTable.
class CreateFollowsTable extends Migration
{
* Run the migrations.
public function up()
Schema::create(
config('follow.table_name'),
function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('follower_id');
$table->unsignedBigInteger('following_id');
$table->timestamp('accepted_at')->nullable();
$table->timestamp('rejected_at')->nullable();
$table->timestamp('special_followed_at')->nullable();
$table->timestamps();
}
);
* Rollback the migrations.
public function down()
Schema::dropIfExists(config('follow.table_name'));