mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
log count of logged in users in Database (#13137)
* log count of logged in users in Database * . * rewrite Code * create hrSystem Table * . * . * db adjustments * adjust db Table * . * adjust db Table * table redesign * . * .
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateHrSystemTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('hrSystem', function (Blueprint $table) {
|
||||
$table->increments('hrSystem_id');
|
||||
$table->unsignedInteger('device_id')->index();
|
||||
$table->integer('hrSystemNumUsers')->default(0);
|
||||
$table->integer('hrSystemProcesses')->default(0);
|
||||
$table->integer('hrSystemMaxProcesses')->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('hrSystem');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user