From 4b5136ab9b521fed43d044a4a152c1c350739ca4 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Tue, 3 Sep 2019 12:52:38 +0200 Subject: [PATCH] -add main type for dataset (migration) - add abstract typ for description (migration) --- .../2019_08_29_075029_create_dataset_titles_table.php | 2 +- .../2019_08_29_075729_create_dataset_abstracts_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2019_08_29_075029_create_dataset_titles_table.php b/database/migrations/2019_08_29_075029_create_dataset_titles_table.php index b5fc6a3..7c8d858 100644 --- a/database/migrations/2019_08_29_075029_create_dataset_titles_table.php +++ b/database/migrations/2019_08_29_075029_create_dataset_titles_table.php @@ -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); }); diff --git a/database/migrations/2019_08_29_075729_create_dataset_abstracts_table.php b/database/migrations/2019_08_29_075729_create_dataset_abstracts_table.php index cc11d6a..76b9a26 100644 --- a/database/migrations/2019_08_29_075729_create_dataset_abstracts_table.php +++ b/database/migrations/2019_08_29_075729_create_dataset_abstracts_table.php @@ -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);