Mysql
 sql >> Database >  >> RDS >> Mysql

Schema del database Laravel, esterno annullabile

Imposta il country_id e state_id nullable, così.

$table->integer('country_id')->nullable()->unsigned();

$table->integer('state_id')->nullable()->unsigned();