@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('brands', function (Blueprint $table) { |
|
16 | + Schema::create('brands', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->timestamps(); |
19 | 19 | }); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('inventory_objects', function (Blueprint $table) { |
|
16 | + Schema::create('inventory_objects', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->timestamps(); |
19 | 19 | }); |
@@ -34,13 +34,13 @@ |
||
34 | 34 | }); |
35 | 35 | |
36 | 36 | Schema::table('inventories', function($table) { |
37 | - $table->foreign('material_type_id')->references('id')->on('material_type')->onDelete('cascade'); |
|
38 | - $table->foreign('brand_id')->references('id')->on('brand')->onDelete('cascade'); |
|
39 | - $table->foreign('model_id')->references('id')->on('brand_model')->onDelete('cascade'); |
|
40 | - $table->foreign('location_id')->references('id')->on('location')->onDelete('cascade'); |
|
41 | - $table->foreign('moneySourceId')->references('id')->on('moneySource')->onDelete('cascade'); |
|
42 | - $table->foreign('provider_id')->references('id')->on('providers')->onDelete('cascade'); |
|
43 | - }); |
|
37 | + $table->foreign('material_type_id')->references('id')->on('material_type')->onDelete('cascade'); |
|
38 | + $table->foreign('brand_id')->references('id')->on('brand')->onDelete('cascade'); |
|
39 | + $table->foreign('model_id')->references('id')->on('brand_model')->onDelete('cascade'); |
|
40 | + $table->foreign('location_id')->references('id')->on('location')->onDelete('cascade'); |
|
41 | + $table->foreign('moneySourceId')->references('id')->on('moneySource')->onDelete('cascade'); |
|
42 | + $table->foreign('provider_id')->references('id')->on('providers')->onDelete('cascade'); |
|
43 | + }); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('inventories', function (Blueprint $table) { |
|
16 | + Schema::create('inventories', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('public_id'); |
19 | 19 | $table->string('name', 80); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('brand', function (Blueprint $table) { |
|
16 | + Schema::create('brand', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name', 120); |
19 | 19 | $table->string('shortName', 50); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('studies', function (Blueprint $table) { |
|
16 | + Schema::create('studies', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->timestamps(); |
19 | 19 | }); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('moneySource', function (Blueprint $table) { |
|
16 | + Schema::create('moneySource', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name', 120); |
19 | 19 | $table->string('shortName', 50); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
17 | 17 | $table->string('email')->index(); |
18 | 18 | $table->string('token')->index(); |
19 | 19 | $table->timestamp('created_at')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('brand_model', function (Blueprint $table) { |
|
16 | + Schema::create('brand_model', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name', 80); |
19 | 19 | $table->string('description', 120); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('material_type', function (Blueprint $table) { |
|
16 | + Schema::create('material_type', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name', 80); |
19 | 19 | $table->string('description', 120); |