@@ -4,19 +4,19 @@ |
||
4 | 4 | |
5 | 5 | class CreateTeamTable |
6 | 6 | { |
7 | - /** |
|
8 | - * Run the migrations. |
|
9 | - * |
|
10 | - * @return void |
|
11 | - */ |
|
12 | - public function run() |
|
13 | - { |
|
14 | - Capsule::schema()->dropIfExists('teams'); |
|
15 | - Capsule::schema()->create('teams', function ($table) { |
|
16 | - $table->increments('id'); |
|
17 | - $table->string('name'); |
|
18 | - $table->string('nationality',2); |
|
19 | - $table->timestamps(); |
|
20 | - }); |
|
21 | - } |
|
7 | + /** |
|
8 | + * Run the migrations. |
|
9 | + * |
|
10 | + * @return void |
|
11 | + */ |
|
12 | + public function run() |
|
13 | + { |
|
14 | + Capsule::schema()->dropIfExists('teams'); |
|
15 | + Capsule::schema()->create('teams', function ($table) { |
|
16 | + $table->increments('id'); |
|
17 | + $table->string('name'); |
|
18 | + $table->string('nationality',2); |
|
19 | + $table->timestamps(); |
|
20 | + }); |
|
21 | + } |
|
22 | 22 | } |