Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class CreateActivityLogTable extends Migration |
||
8 | { |
||
9 | public function up() |
||
10 | { |
||
11 | Schema::create(config('activitylog.table_name'), function (Blueprint $table) { |
||
12 | $table->increments('id'); |
||
13 | $table->string('log_name')->nullable(); |
||
14 | $table->text('description'); |
||
15 | $table->integer('subject_id')->nullable(); |
||
16 | $table->string('subject_type')->nullable(); |
||
17 | $table->integer('causer_id')->nullable(); |
||
18 | $table->string('causer_type')->nullable(); |
||
19 | $table->text('properties')->nullable(); |
||
20 | $table->timestamps(); |
||
21 | |||
22 | $table->index('log_name'); |
||
23 | }); |
||
24 | } |
||
25 | |||
26 | public function down() |
||
27 | { |
||
28 | Schema::drop(config('activitylog.table_name')); |
||
29 | } |
||
31 |