fixing user id reference in session migration
This commit is contained in:
		| @@ -15,12 +15,12 @@ return new class extends Migration | |||||||
|     { |     { | ||||||
|         Schema::create('sessions', function (Blueprint $table) { |         Schema::create('sessions', function (Blueprint $table) { | ||||||
|             $table->string('id')->primary(); |             $table->string('id')->primary(); | ||||||
|             $table->string('user_id', 64); |             $table->string('user_id', 64)->nullable()->index(); | ||||||
|             $table->string('ip_address', 45)->nullable(); |             $table->string('ip_address', 45)->nullable(); | ||||||
|             $table->text('user_agent')->nullable()->index(); |             $table->text('user_agent')->nullable()->index(); | ||||||
|             $table->text('payload'); |             $table->text('payload'); | ||||||
|             $table->integer('last_activity')->index(); |             $table->integer('last_activity')->index(); | ||||||
|             $table->timestamp('vr_last_activity_at')->virtualAs('FROM_UNIXTIME(last_activity)'); |             $table->timestamp('vrt_last_activity_at')->virtualAs('FROM_UNIXTIME(last_activity)'); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user