-add main type for dataset (migration)

- add abstract typ for description (migration)
This commit is contained in:
Arno Kaimbacher 2019-09-03 12:52:38 +02:00
parent 07349197ed
commit 4b5136ab9b
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class CreateDatasetTitlesTable extends Migration
$table->foreign('document_id')->references('id')->on('documents')
->onUpdate('cascade')->onDelete('cascade');
$table->enum('type', ['sub' => 'sub', 'alternative' => 'alternative', 'translated' => 'translated', 'other' => 'other']);
$table->enum('type', ['main' => 'main', 'sub' => 'sub', 'alternative' => 'alternative', 'translated' => 'translated', 'other' => 'other']);
$table->string('value', 255);
$table->string('language', 3);
});

View File

@ -22,7 +22,7 @@ class CreateDatasetAbstractsTable extends Migration
$table->enum(
'type',
['methods' => 'methods', 'series_information' => 'series_information', 'technical_info' => 'technical_info', 'translated' => 'translated', 'other' => 'other']
['abstract' => 'abstract', 'methods' => 'methods', 'series_information' => 'series_information', 'technical_info' => 'technical_info', 'translated' => 'translated', 'other' => 'other']
);
$table->string('value', 255);
$table->string('language', 3);