-
Notifications
You must be signed in to change notification settings - Fork 8
/
2021_07_19_123858_create_mismatches_table.php
45 lines (42 loc) · 1.29 KB
/
2021_07_19_123858_create_mismatches_table.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\Models\ImportMeta;
class CreateMismatchesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mismatches', function (Blueprint $table) {
$table->id();
$table->string('statement_guid');
$table->string('property_id');
$table->string('wikidata_value', 2048); // Arbitrary length above 1500 chars, upper limit for wikidata value
$table->string('external_value', 2048); // Arbitrary length above 1500 chars, upper limit for external value
$table->string('external_url', 2048)->nullable(); // Arbitrary length above 1500 chars, upper limit for url
$table->enum('status', [
'pending',
'wikidata',
'external',
'both',
'none'
]);
$table->foreignId('import_id')->constrained('import_meta');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('mismatches');
}
}