Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 2 |
1 | <?php |
||
10 | class CreateLaravelOpdTable extends Migration |
||
11 | { |
||
12 | /** |
||
13 | * Run the migrations. |
||
14 | * |
||
15 | * @return void |
||
16 | */ |
||
17 | public function up() |
||
18 | { |
||
19 | Schema::create('opd', function (Blueprint $table) { |
||
20 | //$table->increments('id'); |
||
21 | $table->uuid('id')->unique(); |
||
22 | $table->primary('id'); |
||
23 | $table->string('kunker')->index(); |
||
24 | $table->string('name'); |
||
25 | $table->string('kunker_sinjab')->nullable(); |
||
26 | $table->string('kunker_simral')->nullable(); |
||
27 | $table->integer('levelunker'); |
||
28 | $table->string('njab'); |
||
29 | $table->string('npej'); |
||
30 | NestedSet::columns($table); |
||
31 | $table->timestamps(); |
||
32 | }); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Reverse the migrations. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function down() |
||
43 | } |
||
44 | } |
||
45 |