@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('action_events', function (Blueprint $table) { |
|
| 16 | + Schema::create('action_events', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->char('batch_id', 36); |
| 19 | 19 | $table->unsignedBigInteger('user_id')->index(); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('books', function (Blueprint $table) { |
|
| 10 | + Schema::create('books', function(Blueprint $table) { |
|
| 11 | 11 | $table->increments('id'); |
| 12 | 12 | $table->unsignedInteger('author_id'); |
| 13 | 13 | $table->unsignedInteger('publisher_id'); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('authors', function (Blueprint $table) { |
|
| 10 | + Schema::create('authors', function(Blueprint $table) { |
|
| 11 | 11 | $table->increments('id'); |
| 12 | 12 | $table->timestamps(); |
| 13 | 13 | $table->softDeletes(); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('users', function (Blueprint $table) { |
|
| 10 | + Schema::create('users', function(Blueprint $table) { |
|
| 11 | 11 | $table->bigIncrements('id'); |
| 12 | 12 | $table->unsignedBigInteger("supplier_id"); |
| 13 | 13 | $table->timestamps(); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('publishers', function (Blueprint $table) { |
|
| 10 | + Schema::create('publishers', function(Blueprint $table) { |
|
| 11 | 11 | $table->increments('id'); |
| 12 | 12 | $table->timestamps(); |
| 13 | 13 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('comments', function (Blueprint $table) { |
|
| 10 | + Schema::create('comments', function(Blueprint $table) { |
|
| 11 | 11 | $table->increments('id'); |
| 12 | 12 | $table->timestamps(); |
| 13 | 13 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('posts', function (Blueprint $table) { |
|
| 10 | + Schema::create('posts', function(Blueprint $table) { |
|
| 11 | 11 | $table->bigIncrements('id'); |
| 12 | 12 | $table->timestamps(); |
| 13 | 13 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::table('action_events', function (Blueprint $table) { |
|
| 16 | + Schema::table('action_events', function(Blueprint $table) { |
|
| 17 | 17 | $table->text('original')->nullable(); |
| 18 | 18 | $table->text('changes')->nullable(); |
| 19 | 19 | }); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function down() |
| 28 | 28 | { |
| 29 | - Schema::table('action_events', function (Blueprint $table) { |
|
| 29 | + Schema::table('action_events', function(Blueprint $table) { |
|
| 30 | 30 | $table->dropColumn('original', 'changes'); |
| 31 | 31 | }); |
| 32 | 32 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('taggables', function (Blueprint $table) { |
|
| 10 | + Schema::create('taggables', function(Blueprint $table) { |
|
| 11 | 11 | $table->unsignedBigInteger('tag_id'); |
| 12 | 12 | $table->unsignedBigInteger('taggable_id'); |
| 13 | 13 | $table->string("taggable_type"); |