Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class PopulateLanguageRequirementsEnOrFr extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | public function up() |
||
15 | { |
||
16 | DB::table('language_requirements')->insert([ |
||
17 | ['id' => 4, 'name' => 'english_or_french'], |
||
18 | ]); |
||
19 | |||
20 | DB::table('language_requirement_translations')->insert([ |
||
21 | ['id' => 7, 'language_requirement_id' => 4, 'locale' => 'en', 'value' => 'English or French'], |
||
22 | ['id' => 8, 'language_requirement_id' => 4, 'locale' => 'fr', 'value' => 'Anglais ou Français'], |
||
23 | ]); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Reverse the migrations. |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | public function down() |
||
35 | } |
||
36 | } |
||
37 |