Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class CreateFollowsTable extends Migration |
||
19 | { |
||
20 | /** |
||
21 | * Run the migrations. |
||
22 | */ |
||
23 | public function up() |
||
24 | { |
||
25 | Schema::create( |
||
26 | config('follow.table_name'), |
||
27 | function (Blueprint $table) { |
||
28 | $table->bigIncrements('id'); |
||
29 | $table->unsignedBigInteger('follower_id'); |
||
30 | $table->unsignedBigInteger('following_id'); |
||
31 | $table->timestamp('accepted_at')->nullable(); |
||
32 | $table->timestamp('rejected_at')->nullable(); |
||
33 | $table->timestamp('special_followed_at')->nullable(); |
||
34 | $table->timestamps(); |
||
35 | } |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Rollback the migrations. |
||
41 | */ |
||
42 | public function down() |
||
45 | } |
||
46 | } |
||
47 |