-add main type for dataset (migration)
- add abstract typ for description (migration)
This commit is contained in:
parent
07349197ed
commit
4b5136ab9b
|
@ -20,7 +20,7 @@ class CreateDatasetTitlesTable extends Migration
|
||||||
$table->foreign('document_id')->references('id')->on('documents')
|
$table->foreign('document_id')->references('id')->on('documents')
|
||||||
->onUpdate('cascade')->onDelete('cascade');
|
->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('value', 255);
|
||||||
$table->string('language', 3);
|
$table->string('language', 3);
|
||||||
});
|
});
|
||||||
|
|
|
@ -22,7 +22,7 @@ class CreateDatasetAbstractsTable extends Migration
|
||||||
|
|
||||||
$table->enum(
|
$table->enum(
|
||||||
'type',
|
'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('value', 255);
|
||||||
$table->string('language', 3);
|
$table->string('language', 3);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user