mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 07:34:02 +00:00
onDelete restrict
This commit is contained in:
parent
c9355c1c82
commit
907caa4b8b
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue