| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | if (Schema::hasTable('quizzes')) return; |
||
| 17 | |||
| 18 | Schema::create('quizzes', function (Blueprint $table) { |
||
| 19 | $table->increments('id'); |
||
| 20 | $table->string('quiz_name', 80); |
||
| 21 | $table->text('quiz_description'); |
||
| 22 | $table->string('quiz_pin'); |
||
| 23 | $table->enum('active', [0, 1])->nullable(); |
||
| 24 | $table->bigInteger('total_plays')->nullable(); |
||
| 25 | $table->timestamps(); |
||
| 26 | }); |
||
| 39 |