Total Complexity | 2 |
Total Lines | 33 |
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('person_name', function (Blueprint $table) { |
||
17 | $table->id(); |
||
18 | $table->string('group')->nullable(); |
||
19 | $table->integer('gid')->nullable(); |
||
20 | $table->string('name')->nullable(); |
||
21 | $table->string('type')->nullable(); |
||
22 | $table->string('npfx')->nullable(); |
||
23 | $table->string('givn')->nullable(); |
||
24 | $table->string('nick')->nullable(); |
||
25 | $table->string('spfx')->nullable(); |
||
26 | $table->string('surn')->nullable(); |
||
27 | $table->string('nsfx')->nullable(); |
||
28 | $table->timestamps(); |
||
29 | }); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Reverse the migrations. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function down() |
||
38 | { |
||
39 | Schema::dropIfExists('personname'); |
||
40 | } |
||
42 |