| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 44 |