@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('periods', function (Blueprint $table) { |
|
| 15 | + Schema::create('periods', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('days'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('prices', function (Blueprint $table) { |
|
| 15 | + Schema::table('prices', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('product_id')->references('id')->on('products')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 17 | 17 | }); |
| 18 | 18 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function down() |
| 26 | 26 | { |
| 27 | - Schema::table('prices', function (Blueprint $table) { |
|
| 27 | + Schema::table('prices', function(Blueprint $table) { |
|
| 28 | 28 | $table->dropForeign('prices_product_id_foreign'); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('githubs', function (Blueprint $table) { |
|
| 15 | + Schema::create('githubs', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('client_id'); |
| 18 | 18 | $table->string('client_secret'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('prices', function (Blueprint $table) { |
|
| 15 | + Schema::create('prices', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('product_id')->unsigned()->index('prices_product_id_foreign'); |
| 18 | 18 | $table->string('currency'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('invoices', function (Blueprint $table) { |
|
| 15 | + Schema::table('invoices', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('user_id')->references('id')->on('users')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 17 | 17 | }); |
| 18 | 18 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function down() |
| 26 | 26 | { |
| 27 | - Schema::table('invoices', function (Blueprint $table) { |
|
| 27 | + Schema::table('invoices', function(Blueprint $table) { |
|
| 28 | 28 | $table->dropForeign('invoices_user_id_foreign'); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('timezone', function (Blueprint $table) { |
|
| 15 | + Schema::create('timezone', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('location'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('tax_classes', function (Blueprint $table) { |
|
| 15 | + Schema::create('tax_classes', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->timestamps(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('plugins', function (Blueprint $table) { |
|
| 15 | + Schema::create('plugins', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('path'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('mobile', function (Blueprint $table) { |
|
| 15 | + Schema::create('mobile', function(Blueprint $table) { |
|
| 16 | 16 | $table->integer('id', true); |
| 17 | 17 | $table->char('iso', 2); |
| 18 | 18 | $table->string('name', 80); |