These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | use Illuminate\Database\Schema\Blueprint; |
||
4 | use Illuminate\Database\Migrations\Migration; |
||
5 | |||
6 | class CreateActivityLogTable extends Migration { |
||
7 | /** |
||
8 | * Run the migrations. |
||
9 | * |
||
10 | * @return void |
||
11 | */ |
||
12 | public function up() |
||
13 | { |
||
14 | Schema::create('activity_log', function(Blueprint $table) |
||
15 | { |
||
16 | $table->increments('id'); |
||
17 | |||
18 | $table->integer('user_id')->nullable(); |
||
19 | $table->integer('content_id')->nullable(); |
||
20 | |||
21 | $table->string('content', 72)->nullable(); |
||
22 | $table->string('action', 32)->nullable(); |
||
23 | $table->string('state', 32)->nullable(); |
||
24 | |||
25 | $table->longText('details')->nullable(); |
||
26 | $table->longText('data')->nullable(); |
||
27 | |||
28 | $table->string('version', 10)->nullable(); |
||
29 | $table->string('ip_address', 64); |
||
30 | $table->string('user_agent', 255); |
||
31 | |||
32 | $table->timestamp('created_at')->useCurrent(); |
||
33 | $table->timestamp('updated_at')->useCurrent(); |
||
34 | }); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Reverse the migrations. |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function down() |
||
43 | { |
||
44 | Schema::drop('activity_log'); |
||
45 | } |
||
46 | } |
||
0 ignored issues
–
show
|
|||
47 |
This check marks files that end in a newline character, i.e. an empy line.