Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('customer_contact_phones', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->integer('cont_id')->unsigned(); |
||
19 | $table->integer('phone_type_id')->unsigned(); |
||
20 | $table->text('phone_number'); |
||
21 | $table->text('extension')->nullable(); |
||
22 | $table->timestamps(); |
||
23 | $table->foreign('cont_id')->references('cont_id')->on('customer_contacts')->onUpdate('cascade')->onDelete('cascade'); |
||
24 | $table->foreign('phone_type_id')->references('phone_type_id')->on('phone_number_types')->onUpdate('cascade'); |
||
25 | }); |
||
38 |