- demo Schleife im Header

- Sprachen nur englisch und deutsch
- Migrations und TableSeeder ausgebessert (zusätzlich document_identifiers)
- reviewer nun reviewer Rolle (Fehler ausgebessert)
This commit is contained in:
Arno Kaimbacher 2019-09-13 17:49:18 +02:00
parent 5ff1ba7c6a
commit 84deb7c457
8 changed files with 128 additions and 34 deletions

View file

@ -23,7 +23,7 @@ class CreateDocumentReferencesTable extends Migration
$table->enum(
'type',
["DOI", "Handle", "ISBN", "ISSN", "URL", "URN"]
["doi", "handle", "isbn", "issn", "url", "urn"]
);
$table->enum(
'relation',

View file

@ -0,0 +1,42 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDocumentIdentifiersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('document_identifiers', function (Blueprint $table) {
$table->increments('id');
$table->integer('document_id')->unsigned();
$table->foreign('document_id')->references('id')->on('documents')
->onUpdate('cascade')->onDelete('cascade');
$table->enum(
'type',
["doi", "handle", "isbn", "issn", "url", "urn"]
);
$table->string('value', 255);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('document_identifiers');
}
}