librenms/database/migrations/2018_07_03_091314_create_session_table.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
775 B
PHP
Raw Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('session', function (Blueprint $table) {
$table->increments('session_id');
$table->string('session_username');
$table->string('session_value', 60)->unique();
$table->string('session_token', 60);
$table->string('session_auth', 16);
$table->integer('session_expiry');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::drop('session');
}
};