forked from monicahq/monica
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix life event 'Got a tattoo or piercing' misspell (monicahq#1925)
- Loading branch information
Showing
8 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
database/migrations/2018_10_19_081816_life_event_tattoo.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\DB; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class LifeEventTattoo extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
DB::table('default_life_event_types') | ||
->where('translation_key', 'tatoo_or_piercing') | ||
->update([ | ||
'translation_key' => 'tattoo_or_piercing', | ||
]); | ||
|
||
DB::table('life_event_types') | ||
->where('default_life_event_type_key', 'tatoo_or_piercing') | ||
->update([ | ||
'default_life_event_type_key' => 'tattoo_or_piercing', | ||
'name' => trans('settings.personalization_life_event_type_tattoo_or_piercinge', [], 'en'), | ||
]); | ||
} | ||
} |
File renamed without changes
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters