Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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('repositories', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->string('group')->nullable(); |
||
19 | $table->integer('gid')->nullable(); |
||
20 | $table->string('name')->nullable(); |
||
21 | $table->text('description')->nullable(); |
||
22 | $table->dateTime('date')->nullable(); |
||
23 | $table->integer('is_active')->nullable(); |
||
24 | $table->integer('type_id')->nullable(); |
||
25 | $table->string('repo')->nullable(); |
||
26 | $table->integer('addr_id')->nullable(); |
||
27 | $table->string('rin')->nullable(); |
||
28 | $table->string('phon')->nullable(); |
||
29 | $table->string('email')->nullable(); |
||
30 | $table->string('fax')->nullable(); |
||
31 | $table->string('www')->nullable(); |
||
32 | $table->timestamps(); |
||
33 | }); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Reverse the migrations. |
||
38 | * |
||
39 | * @return void |
||
40 | */ |
||
41 | public function down() |
||
42 | { |
||
43 | Schema::dropIfExists('repositories'); |
||
44 | } |
||
46 |