Passed
Push — master ( 5d9325...8a350f )
by Curtis
11:22
created

CreateSourcesTable::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 26
Code Lines 24

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 24
nc 1
nop 0
dl 0
loc 26
rs 9.536
c 1
b 0
f 0
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
return new class extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('sources', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->string('name')->nullable();
19
            $table->text('description')->nullable();
20
            $table->string('date')->nullable();
21
            $table->integer('is_active')->nullable();
22
            $table->integer('author_id')->nullable();
23
            $table->integer('repository_id')->references('id')->on('repositories')->nullable();
24
            $table->integer('publication_id')->nullable();
25
            $table->integer('type_id')->nullable();
26
            $table->string('sour')->nullable();
27
            $table->text('titl')->nullable();
28
            $table->string('auth')->nullable();
29
            $table->string('data')->nullable();
30
            $table->text('text')->nullable();
31
            $table->text('publ')->nullable();
32
            $table->string('abbr')->nullable();
33
            $table->string('group')->nullable();
34
            $table->integer('gid')->nullable();
35
            $table->string('quay')->nullable();
36
            $table->text('page')->nullable();
37
            $table->string('rin')->nullable();
38
            $table->string('note')->nullable();
39
            $table->timestamps();
40
        });
41
    }
42
43
    /**
44
     * Reverse the migrations.
45
     *
46
     * @return void
47
     */
48
    public function down()
49
    {
50
        Schema::dropIfExists('sources');
51
    }
52
}
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected EOF, expecting ';' on line 52 at column 0
Loading history...
53