increments('id'); $table->string('name')->nullable(); $table->integer('numeric_value')->nullable(); $table->integer('company_id')->nullable(); $table->timestamps(); $table->softDeletes(); }); Schema::table('accounts', function (Blueprint $table) { $table->string('extra_id')->nullable(); $table->integer('payment_currency_id')->unsigned()->nullable(); $table->foreign('payment_currency_id')->references('id')->on('bap_currency'); $table->integer('payment_condition_id')->unsigned()->nullable(); $table->foreign('payment_condition_id')->references('id')->on('accounts_dict_payment_condition'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('accounts', function (Blueprint $table) { $table->dropColumn('extra_id'); $table->dropColumn('payment_currency_id'); $table->dropColumn('payment_condition_id'); }); Schema::dropIfExists('accounts_dict_payment_condition'); } }