CreateHostKeysTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 13 1
A down() 0 4 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateHostKeysTable extends Migration {
7
8
	public function up()
9
	{
10
		Schema::create('host_keys', function(Blueprint $table) {
11
			$table->increments('id');
12
			$table->timestamps();
13
			$table->softDeletes();
14
			$table->string('hostname', 255)->unique();
15
			$table->string('keys', 255)->unique();
16
			$table->string('state', 255);
17
			$table->string('transition', 255);
18
			$table->integer('user_id')->unsigned()->index();
19
		});
20
	}
21
22
	public function down()
23
	{
24
		Schema::drop('host_keys');
25
	}
26
}
27