| @@ 17-26 (lines=10) @@ | ||
| 14 | public function up() |
|
| 15 | { |
|
| 16 | ||
| 17 | Schema::create('ContactType', function (Blueprint $table) { |
|
| 18 | $table->increments('id'); |
|
| 19 | $table->string('name', 100); |
|
| 20 | $table->string('icon', 50)->nullable(); |
|
| 21 | $table->string('color_c', 6)->nullable(); |
|
| 22 | $table->string('color_hc', 6)->nullable(); |
|
| 23 | $table->string('description', 250); |
|
| 24 | $table->timestamps(); |
|
| 25 | $table->softDeletes(); |
|
| 26 | }); |
|
| 27 | ||
| 28 | Schema::create('Contact', function (Blueprint $table) { |
|
| 29 | $table->increments('id'); |
|
| @@ 28-39 (lines=12) @@ | ||
| 25 | $table->softDeletes(); |
|
| 26 | }); |
|
| 27 | ||
| 28 | Schema::create('Contact', function (Blueprint $table) { |
|
| 29 | $table->increments('id'); |
|
| 30 | $table->string('contact_reference', 50); |
|
| 31 | $table->integer('contacttype')->unsigned(); |
|
| 32 | $table->string('contact', 250); |
|
| 33 | $table->tinyInteger('visibility'); |
|
| 34 | $table->timestamps(); |
|
| 35 | $table->softDeletes(); |
|
| 36 | $table->creation(); |
|
| 37 | ||
| 38 | $table->foreign('contacttype')->references('id')->on('ContactType'); |
|
| 39 | }); |
|
| 40 | ||
| 41 | } |
|
| 42 | ||