| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function up() |
||
| 16 | { |
||
| 17 | Schema::create('leaderboard_timescopes', function(Blueprint $table) { |
||
| 18 | $table->increments('id'); |
||
| 19 | |||
| 20 | $table->integer('leaderboard_id')->unsigned(); |
||
| 21 | $table->date('start_at'); |
||
| 22 | $table->date('end_at'); |
||
| 23 | $table->integer('previous_id')->unsigned()->nullable(); |
||
| 24 | |||
| 25 | $table->timestamps(); |
||
| 26 | |||
| 27 | $table->index(['start_at', 'end_at']); |
||
| 28 | $table->foreign('leaderboard_id')->references('id')->on('leaderboards')->onDelete('cascade'); |
||
| 29 | }); |
||
| 42 | } |