mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:54:03 +00:00
Update 2019_09_15_000020_create_domains_table.php
This commit is contained in:
parent
3e410d2992
commit
c7c1736a12
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ class CreateDomainsTable extends Migration
|
||||||
Schema::create('domains', function (Blueprint $table) {
|
Schema::create('domains', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->string('domain', 255)->unique();
|
$table->string('domain', 255)->unique();
|
||||||
$table->string('tenant_id');
|
$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')->onDelete('set null');;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue