| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 18 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 14 | public function up() |
|
| 15 | { |
||
| 16 | Schema::create('model_logs', function (Blueprint $table) { |
||
| 17 | 14 | $table->increments('id'); |
|
| 18 | 14 | $table->morphs('subject'); |
|
| 19 | 14 | $table->string('causer_type')->nullable(); |
|
| 20 | 14 | $table->integer('causer_id')->nullable(); |
|
| 21 | 14 | $table->string('description'); |
|
| 22 | 14 | $table->string('action'); |
|
| 23 | 14 | $table->json('old')->nullable(); |
|
| 24 | 14 | $table->json('new'); |
|
| 25 | 14 | $table->string('route')->nullable(); |
|
| 26 | 14 | $table->string('reverter_type')->nullable(); |
|
| 27 | 14 | $table->string('reverter_id')->nullable(); |
|
| 28 | 14 | $table->timestamp('reverted_at')->nullable(); |
|
| 29 | 14 | $table->string('revert_note')->nullable(); |
|
| 30 | 14 | $table->softDeletes(); |
|
| 31 | 14 | $table->timestamps(); |
|
| 32 | 14 | }); |
|
| 33 | 14 | } |
|
| 34 | |||
| 45 |