1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 07:34:02 +00:00

onDelete restrict

This commit is contained in:
Abrar Ahmad 2022-07-06 11:38:09 +05:00
parent c9355c1c82
commit 907caa4b8b

View file

@ -21,7 +21,7 @@ class CreateDomainsTable extends Migration
$table->string('tenant_id')->nullable(); $table->string('tenant_id')->nullable();
$table->timestamps(); $table->timestamps();
$table->foreign('tenant_id')->references('id')->on('tenants')->onUpdate('cascade')->onDelete('set null');; $table->foreign('tenant_id')->references('id')->on('tenants')->onUpdate('cascade');
}); });
} }