CreateMoipCancellationTable::down()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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