@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('orders', function (Blueprint $table) { |
|
| 15 | + Schema::table('orders', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('client')->references('id')->on('users')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 17 | 17 | $table->foreign('product')->references('id')->on('products')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 18 | 18 | }); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('orders', function (Blueprint $table) { |
|
| 28 | + Schema::table('orders', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropForeign('orders_client_foreign'); |
| 30 | 30 | $table->dropForeign('orders_product_foreign'); |
| 31 | 31 | }); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('configurable_options', function (Blueprint $table) { |
|
| 15 | + Schema::table('configurable_options', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('group_id')->references('id')->on('product_groups')->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('configurable_options', function (Blueprint $table) { |
|
| 27 | + Schema::table('configurable_options', function(Blueprint $table) { |
|
| 28 | 28 | $table->dropForeign('configurable_options_group_id_foreign'); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('mailchimp_field_agora_relations', function (Blueprint $table) { |
|
| 15 | + Schema::create('mailchimp_field_agora_relations', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('first_name'); |
| 18 | 18 | $table->string('last_name'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('orders', function (Blueprint $table) { |
|
| 15 | + Schema::create('orders', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('number')->unique('number'); |
| 18 | 18 | $table->integer('invoice_id'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('order_invoice_relations', function (Blueprint $table) { |
|
| 15 | + Schema::create('order_invoice_relations', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('order_id')->unsigned()->index('order_invoice_relations_order_id_foreign'); |
| 18 | 18 | $table->integer('invoice_id')->unsigned()->index('order_invoice_relations_invoice_id_foreign'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('template_types', function (Blueprint $table) { |
|
| 15 | + Schema::create('template_types', 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('taxes', function (Blueprint $table) { |
|
| 15 | + Schema::create('taxes', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('tax_classes_id')->default(1); |
| 18 | 18 | $table->integer('level'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('subscriptions', function (Blueprint $table) { |
|
| 15 | + Schema::create('subscriptions', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('user_id'); |
| 18 | 18 | $table->integer('plan_id'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('ccavanue', function (Blueprint $table) { |
|
| 15 | + Schema::create('ccavanue', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('merchant_id'); |
| 18 | 18 | $table->string('access_code'); |