@@ -12,13 +12,13 @@ |
||
| 12 | 12 | { |
| 13 | 13 | protected function createSchema(): void |
| 14 | 14 | { |
| 15 | - $this->schema()->create('users', function (Blueprint $table) { |
|
| 15 | + $this->schema()->create('users', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->date('date'); |
| 18 | 18 | $table->timestamps(); |
| 19 | 19 | }); |
| 20 | 20 | |
| 21 | - $this->schema()->create('phones', function (Blueprint $table) { |
|
| 21 | + $this->schema()->create('phones', function(Blueprint $table) { |
|
| 22 | 22 | $table->increments('id'); |
| 23 | 23 | $table->unsignedBigInteger('user_id'); |
| 24 | 24 | |
@@ -12,18 +12,18 @@ |
||
| 12 | 12 | { |
| 13 | 13 | protected function createSchema(): void |
| 14 | 14 | { |
| 15 | - $this->schema()->create('countries', function (Blueprint $table) { |
|
| 15 | + $this->schema()->create('countries', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | }); |
| 18 | 18 | |
| 19 | - $this->schema()->create('users', function (Blueprint $table) { |
|
| 19 | + $this->schema()->create('users', function(Blueprint $table) { |
|
| 20 | 20 | $table->increments('id'); |
| 21 | 21 | $table->unsignedBigInteger('country_id'); |
| 22 | 22 | |
| 23 | 23 | $table->foreign('country_id')->references('id')->on('countries')->onDelete('cascade'); |
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | - $this->schema()->create('posts', function (Blueprint $table) { |
|
| 26 | + $this->schema()->create('posts', function(Blueprint $table) { |
|
| 27 | 27 | $table->increments('id'); |
| 28 | 28 | $table->date('date'); |
| 29 | 29 | $table->unsignedBigInteger('user_id'); |
@@ -14,25 +14,25 @@ |
||
| 14 | 14 | { |
| 15 | 15 | protected function createSchema(): void |
| 16 | 16 | { |
| 17 | - $this->schema()->create('posts', function (Blueprint $table) { |
|
| 17 | + $this->schema()->create('posts', function(Blueprint $table) { |
|
| 18 | 18 | $table->increments('id'); |
| 19 | 19 | $table->timestamps(); |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - $this->schema()->create('tags', function (Blueprint $table) { |
|
| 22 | + $this->schema()->create('tags', function(Blueprint $table) { |
|
| 23 | 23 | $table->increments('id'); |
| 24 | 24 | $table->date('date'); |
| 25 | 25 | $table->timestamps(); |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | - $this->schema()->create('taggables', function (Blueprint $table) { |
|
| 28 | + $this->schema()->create('taggables', function(Blueprint $table) { |
|
| 29 | 29 | $table->unsignedBigInteger('tag_id'); |
| 30 | 30 | $table->unsignedBigInteger('taggable_id'); |
| 31 | 31 | $table->string('taggable_type'); |
| 32 | 32 | $table->timestamps(); |
| 33 | 33 | }); |
| 34 | 34 | |
| 35 | - $this->schema()->create('taggables_using', function (Blueprint $table) { |
|
| 35 | + $this->schema()->create('taggables_using', function(Blueprint $table) { |
|
| 36 | 36 | $table->unsignedBigInteger('tag_id'); |
| 37 | 37 | $table->unsignedBigInteger('taggable_id'); |
| 38 | 38 | $table->string('taggable_type'); |
@@ -13,17 +13,17 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | protected function createSchema(): void |
| 15 | 15 | { |
| 16 | - $this->schema()->create('users', function (Blueprint $table) { |
|
| 16 | + $this->schema()->create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | - $this->schema()->create('roles', function (Blueprint $table) { |
|
| 20 | + $this->schema()->create('roles', function(Blueprint $table) { |
|
| 21 | 21 | $table->increments('id'); |
| 22 | 22 | $table->date('date'); |
| 23 | 23 | $table->timestamps(); |
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | - $this->schema()->create('role_user', function (Blueprint $table) { |
|
| 26 | + $this->schema()->create('role_user', function(Blueprint $table) { |
|
| 27 | 27 | $table->unsignedBigInteger('user_id'); |
| 28 | 28 | $table->unsignedBigInteger('role_id'); |
| 29 | 29 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade'); |
| 32 | 32 | }); |
| 33 | 33 | |
| 34 | - $this->schema()->create('role_user_using', function (Blueprint $table) { |
|
| 34 | + $this->schema()->create('role_user_using', function(Blueprint $table) { |
|
| 35 | 35 | $table->unsignedBigInteger('user_id'); |
| 36 | 36 | $table->unsignedBigInteger('role_id'); |
| 37 | 37 | |
@@ -12,18 +12,18 @@ |
||
| 12 | 12 | { |
| 13 | 13 | protected function createSchema(): void |
| 14 | 14 | { |
| 15 | - $this->schema()->create('suppliers', function (Blueprint $table) { |
|
| 15 | + $this->schema()->create('suppliers', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | }); |
| 18 | 18 | |
| 19 | - $this->schema()->create('users', function (Blueprint $table) { |
|
| 19 | + $this->schema()->create('users', function(Blueprint $table) { |
|
| 20 | 20 | $table->increments('id'); |
| 21 | 21 | $table->unsignedBigInteger('supplier_id'); |
| 22 | 22 | |
| 23 | 23 | $table->foreign('supplier_id')->references('id')->on('suppliers')->onDelete('cascade'); |
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | - $this->schema()->create('history', function (Blueprint $table) { |
|
| 26 | + $this->schema()->create('history', function(Blueprint $table) { |
|
| 27 | 27 | $table->increments('id'); |
| 28 | 28 | $table->date('date'); |
| 29 | 29 | $table->unsignedBigInteger('user_id'); |
@@ -11,11 +11,11 @@ |
||
| 11 | 11 | { |
| 12 | 12 | protected function createSchema(): void |
| 13 | 13 | { |
| 14 | - $this->schema()->create('users', function (Blueprint $table) { |
|
| 14 | + $this->schema()->create('users', function(Blueprint $table) { |
|
| 15 | 15 | $table->increments('id'); |
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | - $this->schema()->create('phones', function (Blueprint $table) { |
|
| 18 | + $this->schema()->create('phones', function(Blueprint $table) { |
|
| 19 | 19 | $table->increments('id'); |
| 20 | 20 | $table->unsignedBigInteger('user_id'); |
| 21 | 21 | $table->timestamps(); |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | { |
| 13 | 13 | protected function createSchema(): void |
| 14 | 14 | { |
| 15 | - $this->schema()->create('users', function (Blueprint $table) { |
|
| 15 | + $this->schema()->create('users', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | }); |
| 18 | 18 | |
| 19 | - $this->schema()->create('phones', function (Blueprint $table) { |
|
| 19 | + $this->schema()->create('phones', function(Blueprint $table) { |
|
| 20 | 20 | $table->increments('id'); |
| 21 | 21 | $table->date('date'); |
| 22 | 22 | $table->unsignedBigInteger('user_id'); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | protected function createSchema(): void |
| 13 | 13 | { |
| 14 | - $this->schema()->create('articles', function (Blueprint $table) { |
|
| 14 | + $this->schema()->create('articles', function(Blueprint $table) { |
|
| 15 | 15 | $table->increments('id'); |
| 16 | 16 | $table->date('date'); |
| 17 | 17 | $table->dateTime('datetime'); |
@@ -11,11 +11,11 @@ |
||
| 11 | 11 | { |
| 12 | 12 | protected function createSchema(): void |
| 13 | 13 | { |
| 14 | - $this->schema()->create('posts', function (Blueprint $table) { |
|
| 14 | + $this->schema()->create('posts', function(Blueprint $table) { |
|
| 15 | 15 | $table->increments('id'); |
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | - $this->schema()->create('images', function (Blueprint $table) { |
|
| 18 | + $this->schema()->create('images', function(Blueprint $table) { |
|
| 19 | 19 | $table->increments('id'); |
| 20 | 20 | $table->unsignedBigInteger('imageable_id'); |
| 21 | 21 | $table->string('imageable_type'); |