CreateMoipCancellationTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 31
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 12 1
A down() 0 4 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
5
class CreateMoipCancellationTable extends Migration {
6
7
	/**
8
	 * Run the migrations.
9
	 *
10
	 * @return void
11
	 */
12
	public function up()
13
	{
14
		Schema::create('moip_cancellation', function($table) {
15
			$table->increments('id');
16
			$table->string('classification', 100)->nullable()->comment('Título do motivo do cancelamento');
17
			$table->mediumText('description')->nullable();
18
			$table->mediumText('message')->nullable()->comment('Sugestão de mensagem ao comprador');
19
			$table->string('recovery', 50)->nullable()->comment('Oportunidade de Recuperação');
20
			$table->timestamps();
21
			$table->softDeletes();
22
		});
23
	}
24
25
	/**
26
	 * Reverse the migrations.
27
	 *
28
	 * @return void
29
	 */
30
	public function down()
31
	{
32
		Schema::drop('moip_cancellation');
33
	}
34
35
}
36