Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function up() |
||
26 | { |
||
27 | Schema::create($this->table, function (Blueprint $table) { |
||
28 | $table->increments('id'); |
||
29 | $table->string('action', 255); |
||
30 | $table->string('table_name', 255); |
||
31 | $table->integer('row_id')->unsigned(); |
||
32 | $table->binary('old')->nullable(); |
||
33 | $table->binary('new')->nullable(); |
||
34 | $table->string('user', 255)->nullable(); |
||
35 | $table->string('ip')->nullable(); |
||
36 | $table->string('ip_forwarded')->nullable(); |
||
37 | $table->timestamp('created_at'); |
||
38 | |||
39 | $table->index('action'); |
||
40 | $table->index(['table_name', 'row_id']); |
||
41 | }); |
||
42 | } |
||
43 | |||
55 |