diff --git a/database/migrations/2024_03_18_172658_create_session_table.php b/database/migrations/2024_03_18_172658_create_session_table.php new file mode 100644 index 0000000..dce2e94 --- /dev/null +++ b/database/migrations/2024_03_18_172658_create_session_table.php @@ -0,0 +1,31 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +return new class extends Migration +{ + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('session', function (Blueprint $table) { + $table->string('id')->primary(); + $table->foreignId('user_id')->nullable()->index(); + $table->string('ip_address', 45)->nullable(); + $table->text('user_agent')->nullable(); + $table->longText('payload'); + $table->integer('last_activity')->index(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('session'); + } +}; diff --git a/version.php b/version.php index f474d72..0ef0ffb 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@ <?php -const VERSION = '2.1.1'; +const VERSION = '2.1.2';