CreateApiManagerTable::down()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * @Author: etanasia
5
 * @Date:   2017-11-28 00:54:01
6
 * @Last Modified by:   etanasia
7
 * @Last Modified time: 2017-11-28 00:54:10
8
 */
9
10
use Illuminate\Support\Facades\Schema;
11
use Illuminate\Database\Migrations\Migration;
12
use Illuminate\Database\Schema\Blueprint;
13
14
class CreateApiManagerTable extends Migration {
15
16
	public function up()
17
	{
18
		Schema::create('api_keys', function(Blueprint $table) {
19
			$table->increments('id');
20
			$table->timestamps();
21
			$table->softDeletes();
22
			$table->integer('user_id');
23
			$table->string('client', 225);
24
			$table->string('api_key', 255);
25
			$table->text('description');
26
			$table->integer('is_published')->default('1');
27
		});
28
	}
29
30
	public function down()
31
	{
32
		Schema::drop('api_keys');
33
	}
34
}
35