add nullable to column
This commit is contained in:
@@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::table('azmayeshes', function (Blueprint $table) {
|
Schema::table('azmayeshes', function (Blueprint $table) {
|
||||||
$table->foreignId('contract_subitem_id')->constrained('contract_subitems')->onDelete('cascade');
|
$table->foreignId('contract_subitem_id')->nullable()->constrained('contract_subitems')->onDelete('cascade');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user