- schow no contributor in oai if no contributor is defined

- add contributor_type during creating the dataset
This commit is contained in:
Arno Kaimbacher 2020-05-04 13:50:23 +02:00
parent 76bdfcdf92
commit 3a2336adad
23 changed files with 434 additions and 316 deletions

View file

@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Config;
class AddContributorTypeToDocumentsPersons extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('link_documents_persons', function (Blueprint $table) {
$table->enum('contributor_type', Config::get('enums.contributor_types'))->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('link_documents_persons', function (Blueprint $table) {
$table->dropColumn('contributor_type');
});
}
}