You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
617 B
PHP
30 lines
617 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Migrations;
|
|
|
|
use Engelsystem\Database\Migration\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateSessionsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migration
|
|
*/
|
|
public function up()
|
|
{
|
|
$this->schema->create('sessions', function (Blueprint $table) {
|
|
$table->string('id')->unique();
|
|
$table->text('payload');
|
|
$table->dateTime('last_activity')->useCurrent();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migration
|
|
*/
|
|
public function down()
|
|
{
|
|
$this->schema->dropIfExists('sessions');
|
|
}
|
|
}
|