| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | class CreateH5pEventLogsTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('h5p_event_logs', function (Blueprint $table) { |
||
| 17 | $table->bigIncrements('id'); |
||
| 18 | $table->string('type'); |
||
| 19 | $table->string('sub_type'); |
||
| 20 | $table->string('content_id'); |
||
| 21 | $table->string('content_title'); |
||
| 22 | $table->string('library_name'); |
||
| 23 | $table->string('library_version'); |
||
| 24 | $table->string('user_id'); |
||
| 25 | $table->timestamps(); |
||
| 26 | }); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Reverse the migrations. |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function down() |
||
| 37 | } |
||
| 38 | } |
||
| 39 |