id()->autoIncrement(); $table->string('name',100)->nullable(); $table->integer('price')->nullable(); $table->integer('price_sale')->nullable(); $table->integer('renewal')->nullable(); $table->integer('transfer')->nullable(); $table->tinyInteger('auto_reg')->default(0); $table->tinyInteger('type_id')->default(0)->index(); $table->tinyInteger('status')->default(1); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('domain',function (Blueprint $table){ $table->dropForeign('group_id'); $table->drop(); }); } };