Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('h5p_results', function (Blueprint $table) { |
||
17 | $table->bigIncrements('id'); |
||
18 | $table->bigInteger('content_id')->unsigned(); |
||
19 | $table->bigInteger('user_id')->unsigned(); |
||
20 | $table->bigInteger('score')->unsigned(); |
||
21 | $table->bigInteger('max_score')->unsigned(); |
||
22 | $table->bigInteger('opened')->unsigned(); |
||
23 | $table->bigInteger('finished')->unsigned(); |
||
24 | $table->bigInteger('time')->unsigned(); |
||
25 | $table->index(['content_id', 'user_id'], 'content_user'); |
||
26 | }); |
||
39 |