forked from pkp/ojs
-
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.
pkp/pkp-lib#10292 make context id required on controlled vocabs opera…
…tions
- Loading branch information
1 parent
ecab2a0
commit 9f36bb8
Showing
3 changed files
with
39 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* @file classes/migration/install/ControlledVocabMigration.php | ||
* | ||
* Copyright (c) 2024 Simon Fraser University | ||
* Copyright (c) 2024 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class ControlledVocabMigration | ||
* | ||
* @brief Describe database table structures. | ||
*/ | ||
|
||
namespace APP\migration\install; | ||
|
||
class ControlledVocabMigration extends \PKP\migration\install\ControlledVocabMigration | ||
{ | ||
/** | ||
* @copydoc \PKP\migration\install\ControlledVocabMigration::getContextTable() | ||
*/ | ||
protected function getContextTable(): string | ||
{ | ||
return 'journals'; | ||
} | ||
|
||
/** | ||
* @copydoc \PKP\migration\install\ControlledVocabMigration::getContextPrimaryKey() | ||
*/ | ||
protected function getContextPrimaryKey(): string | ||
{ | ||
return 'journal_id'; | ||
} | ||
} |
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