Changeset ff9da8b for database


Ignore:
Timestamp:
02/26/21 18:14:28 (4 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
master
Children:
7ed1069
Parents:
f457265
Message:

Added companies delete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/migrations/2019_10_12_000000_create_users_table.php

    rf457265 rff9da8b  
    2525            $table->string('mobile_number')->unique();
    2626            $table->integer('company_id')->unsigned()->nullable();
    27             $table->foreign("company_id")->references("id")->on("companies");
     27            $table->foreign("company_id")->references("id")->on("companies")->onDelete("cascade");
    2828            $table->integer('role_id')->unsigned();
    2929            $table->foreign("role_id")->references("id")->on("roles");
Note: See TracChangeset for help on using the changeset viewer.