Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | if (!Schema::hasTable('sessions')) { |
||
17 | Schema::create('sessions', function (Blueprint $table) { |
||
18 | $table->string('id')->unique(); |
||
19 | $table->integer('user_id')->nullable(); |
||
20 | $table->string('ip_address', 45)->nullable(); |
||
21 | $table->text('user_agent')->nullable(); |
||
22 | $table->text('payload'); |
||
23 | $table->integer('last_activity'); |
||
24 | }); |
||
25 | } |
||
26 | } |
||
27 | |||
38 |