blob: 50e80e03bf78302eb4248970e3b53f437e30a5d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
* Will hold the player's core profile.
* Data in this will be populated only when a user logs onto the site
* and generated a profile. We don't need to keep data for every single user
* as many may never visit the same.
*/
class CreateGamerTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gamer', function (Blueprint $table) {
$table->increments('id');
$table->string('player_api_id')->index(); // FK to player's table
$table->string('name')->index();
$table->string('vainsocial_status')->nullable(); // regular, fan, etc.
$table->string('vainglory_ign')->nullable();
$table->string('vainglory_shard_id')->nullable();
$table->boolean('vainglory_is_pro')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('gamer');
}
}
|