Passed
Push — master ( 2c3721...94fb22 )
by Grant
09:10 queued 10s
created

CreateJobPosterTranslationsTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 14
c 0
b 0
f 0
dl 0
loc 35
rs 10
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateJobPosterTranslationsTable extends Migration {
7
8
	/**
9
	 * Run the migrations.
10
	 *
11
	 * @return void
12
	 */
13
	public function up()
14
	{
15
		Schema::create('job_poster_translations', function(Blueprint $table)
16
		{
17
			$table->increments('id');
18
			$table->integer('job_poster_id')->unsigned()->index();
19
			$table->string('locale');
20
			$table->text('city')->nullable();
21
			$table->text('title')->nullable();
22
			$table->text('impact')->nullable();
23
			$table->text('branch')->nullable();
24
			$table->text('division')->nullable();
25
			$table->text('education')->nullable();
26
			$table->timestamps();
27
28
			$table->unique(['job_poster_id','locale']);
29
		});
30
	}
31
32
33
	/**
34
	 * Reverse the migrations.
35
	 *
36
	 * @return void
37
	 */
38
	public function down()
39
	{
40
		Schema::drop('job_poster_translations');
41
	}
42
43
}
44