Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class CreateUsersTable extends Migration |
||
9 | { |
||
10 | /** |
||
11 | * Run the migrations. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function up() |
||
16 | { |
||
17 | Schema::create("users", function(Blueprint $table) { |
||
18 | $table->increments(); |
||
19 | $table->text("username"); |
||
20 | $table->string("email")->unique(); |
||
21 | $table->string("password"); |
||
22 | $table->string('remember_token', 100); |
||
23 | $table->string('reset_password_token', 100); |
||
24 | $table->timestamps(); |
||
25 | }, "mysql"); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Reverse the migrations. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function down() |
||
36 | } |
||
37 | } |
||
38 |