1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 18:54:03 +00:00

Update 2019_09_15_000020_create_domains_table.php

This commit is contained in:
Abrar Ahmad 2022-07-04 12:26:48 +05:00
parent 3e410d2992
commit c7c1736a12

View file

@ -18,7 +18,7 @@ class CreateDomainsTable extends Migration
Schema::create('domains', function (Blueprint $table) {
$table->increments('id');
$table->string('domain', 255)->unique();
$table->string('tenant_id');
$table->string('tenant_id')->nullable();
$table->timestamps();
$table->foreign('tenant_id')->references('id')->on('tenants')->onUpdate('cascade')->onDelete('set null');;