Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | Schema::create('game_player', function(Blueprint $table) { |
||
18 | $table->increments('id'); |
||
19 | |||
20 | $table->integer('game_id')->unsigned(); |
||
21 | $table->integer('player_id')->unsigned(); |
||
22 | $table->tinyInteger('channel')->unsigned()->default('0'); |
||
23 | $table->smallInteger('version')->unsigned()->default('100'); |
||
24 | $table->boolean('is_hack')->default(false); |
||
25 | |||
26 | $table->timestamps(); |
||
27 | |||
28 | $table->foreign('game_id')->references('id')->on('games')->onDelete('cascade'); |
||
29 | $table->foreign('player_id')->references('id')->on('players')->onDelete('cascade'); |
||
30 | }); |
||
44 |