-
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#9525 Update Crossref schema to 5.3.1
- Loading branch information
Showing
5 changed files
with
36 additions
and
7 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
classes/migration/upgrade/I9525_CrossrefSchemaUpdate.inc.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,26 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Capsule\Manager as Capsule; | ||
use PKP\install\DowngradeNotSupportedException; | ||
|
||
class I9525_CrossrefSchemaUpdate extends \Illuminate\Database\Migrations\Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Capsule::table('filter_groups') | ||
->whereIn('symbolic', ['issue=>crossref-xml', 'article=>crossref-xml']) | ||
->update(['output_type' => 'xml::schema(https://www.crossref.org/schemas/crossref5.3.1.xsd)']); | ||
} | ||
|
||
/** | ||
* @throws DowngradeNotSupportedException | ||
*/ | ||
public function down() | ||
{ | ||
throw new DowngradeNotSupportedException(); | ||
} | ||
} |
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
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