integer('id')->primary(); $table->timestamps(); $table->binary('zt_id',10)->nullable(); $table->binary('ztnet',6)->nullable(); $table->ipAddress('ipv4')->nullable(); $table->integer('ipv4_mask')->nullable(); $table->ipAddress('ipv6')->nullable(); $table->integer('ipv6_mask')->nullable(); $table->unique('zt_id'); $table->foreign('zt_id')->references('id')->on('zt'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('zones'); } }