-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDNBPluginMigration.php
More file actions
35 lines (31 loc) · 1.07 KB
/
DNBPluginMigration.php
File metadata and controls
35 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* @file plugins/generic/dnb/DNBPluginMigration.php
*
* Copyright (c) 2021 Universitätsbibliothek Freie Universität Berlin
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class DNBPluginMigration
* @brief Describe database table structures.
*/
namespace APP\plugins\generic\dnb;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
class DNBPluginMigration extends Migration {
/**
* Run the migrations.
* @return void
*/
public function up() {
echo "Running DNBPluginMigration ...\n";
// ===== Filters ===== //
// OJS 3.3
DB::table('filters')
->where('class_name', '=', 'plugins.importexport.dnb.filter.DNBXmlFilter')
->update(['class_name' => 'APP\plugins\generic\dnb\filter\DNBXmlFilter']);
// OJS 3.4
DB::table('filters')
->where('class_name', '=', 'APP\plugins\importexport\dnb\filter\DNBXmlFilter')
->update(['class_name' => 'APP\plugins\generic\dnb\filter\DNBXmlFilter']);
}
}