Files

32 lines
762 B
PHP
Raw Permalink Normal View History

2016-01-23 15:42:25 -05:00
<?php
2024-10-21 19:18:20 -06:00
use Illuminate\Support\Facades\Schema;
2016-01-23 15:42:25 -05:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSessionsTable extends Migration
{
/**
* Run the migrations.
*/
2024-10-21 19:18:20 -06:00
public function up(): void
2016-01-23 15:42:25 -05:00
{
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->unique();
$table->integer('user_id')->nullable();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->text('payload');
$table->integer('last_activity');
});
}
/**
* Reverse the migrations.
*/
2024-10-21 19:18:20 -06:00
public function down(): void
2016-01-23 15:42:25 -05:00
{
Schema::drop('sessions');
}
}