| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create( |
||
| 16 | 'translations', |
||
| 17 | function (Blueprint $table) { |
||
| 18 | $table->increments('id'); |
||
| 19 | $table->unsignedInteger('string_id'); |
||
| 20 | $table->unsignedInteger('language_id'); |
||
| 21 | $table->longText('text'); |
||
| 22 | $table->datetime('date_edition'); |
||
| 23 | |||
| 24 | $table->unique(['string_id', 'language_id']); |
||
| 25 | $table->foreign('string_id')->references('id')->on('strings'); |
||
| 26 | $table->foreign('language_id')->references('id')->on('languages'); |
||
| 27 | } |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 41 |