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
|
|
|
} |
|
|
|
|
53
|
|
|
|