Test Setup Failed
Push — master ( 47ca50...dda576 )
by Jeremy
53s queued 12s
created

anonymous//src/Database/TestMigrations/2014_10_12_000000_create_users_table.php$0   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 10
c 1
b 0
f 0
dl 0
loc 28
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A 2014_10_12_000000_create_users_table.php$0 ➔ up() 0 10 1
A 2014_10_12_000000_create_users_table.php$0 ➔ down() 0 3 1
1
<?php
2
3
namespace jeremykenedy\LaravelRoles\Database\TestMigrations;
4
5
use Illuminate\Database\Migrations\Migration;
6
use Illuminate\Database\Schema\Blueprint;
7
use Illuminate\Support\Facades\Schema;
8
9
return new class extends Migration
10
{
11
    /**
12
     * Run the migrations.
13
     *
14
     * @return void
15
     */
16
    public function up(): void
17
    {
18
        Schema::create('users', function (Blueprint $table) {
19
            $table->id();
20
            $table->string('name');
21
            $table->string('email')->unique();
22
            $table->timestamp('email_verified_at')->nullable();
23
            $table->string('password');
24
            $table->rememberToken();
25
            $table->timestamps();
26
        });
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     *
32
     * @return void
33
     */
34
    public function down(): void
35
    {
36
        Schema::dropIfExists('users');
37
    }
38
};
39