Oprava chyb v Logging.php, uprava tabuliek
- oprava tabuliek created_at, CURRENT_TIMESTAMP - pridanie memory_total, load - apcu fix
This commit is contained in:
@@ -17,11 +17,11 @@ class CreateUsersTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->string('password');
|
||||
$table->string('full_name');
|
||||
$table->string('ou');
|
||||
$table->string('password')->nullable();
|
||||
$table->string('full_name')->nullable();
|
||||
$table->string('ou')->nullable();
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
|
||||
|
||||
$table->index([DB::raw('email(191)')]);
|
||||
});
|
||||
|
||||
@@ -15,8 +15,8 @@ class CreateComputersTable extends Migration
|
||||
{
|
||||
Schema::create('computers', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('computer');
|
||||
$table->timestamps();
|
||||
$table->string('computer');
|
||||
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -15,15 +15,15 @@ class CreateUserIpTable extends Migration
|
||||
{
|
||||
Schema::create('user_ip', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('ip');
|
||||
$table->string('ip');
|
||||
|
||||
$table->unsignedInteger('computer_id');
|
||||
$table->foreign('computer_id')->references('id')->on('computers');
|
||||
$table->unsignedInteger('computer_id');
|
||||
$table->foreign('computer_id')->references('id')->on('computers');
|
||||
|
||||
$table->unsignedInteger('user_id');
|
||||
$table->foreign('user_id')->references('id')->on('users');
|
||||
$table->unsignedInteger('user_id');
|
||||
$table->foreign('user_id')->references('id')->on('users');
|
||||
|
||||
$table->timestamps();
|
||||
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -17,15 +17,17 @@ class CreateValuesTable extends Migration
|
||||
$table->bigIncrements('id');
|
||||
$table->bigInteger('netstat_sent')->nullable();
|
||||
$table->bigInteger('netstat_recv')->nullable();
|
||||
$table->bigInteger('memory_total')->nullable();
|
||||
$table->bigInteger('memory_free')->nullable();
|
||||
$table->bigInteger('memory_used')->nullable();
|
||||
$table->bigInteger('disk_free')->nullable();
|
||||
$table->float('disk_percent',8,2)->nullable();
|
||||
$table->float('disk_percent',8,2)->nullable();
|
||||
$table->float('load',8,2)->nullable();
|
||||
$table->bigInteger('disk_used')->nullable();
|
||||
$table->bigInteger('disk_total')->nullable();
|
||||
$table->integer('processes')->nullable();
|
||||
$table->integer('temp')->nullable();
|
||||
$table->timestamps();
|
||||
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
|
||||
|
||||
$table->unsignedBigInteger('computer_id');
|
||||
$table->foreign('computer_id')->references('id')->on('computers');
|
||||
|
||||
Reference in New Issue
Block a user