-
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.
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
classes/migration/upgrade/v3_4_0/MergeLocalesMigration.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,35 @@ | ||
<?php | ||
|
||
/** | ||
* @file classes/migration/upgrade/v3_4_0/MergeLocalesMigration.php | ||
* | ||
* Copyright (c) 2014-2021 Simon Fraser University | ||
* Copyright (c) 2000-2021 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class MergeLocalesMigration | ||
* | ||
* @brief Change Locales from locale_countryCode localization folder notation to locale localization folder notation | ||
*/ | ||
|
||
namespace APP\migration\upgrade\v3_4_0; | ||
|
||
use Illuminate\Support\Collection; | ||
|
||
class MergeLocalesMigration extends \PKP\migration\upgrade\v3_4_0\MergeLocalesMigration | ||
{ | ||
protected string $CONTEXT_TABLE = 'presses'; | ||
protected string $CONTEXT_SETTINGS_TABLE = 'press_settings'; | ||
protected string $CONTEXT_COLUMN = 'press_id'; | ||
|
||
protected function getSettingsTables(): Collection | ||
{ | ||
return collect([ | ||
'press_settings' => 'press_id', | ||
'publication_format_settings' => 'publication_format_id', | ||
'series_settings' => 'series_id', | ||
'spotlight_settings' => 'spotlight_id', | ||
'submission_chapter_settings' => 'chapter_id', | ||
])->merge(parent::getSettingsTables()); | ||
} | ||
} |
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