@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('widgets', function (Blueprint $table) { |
|
| 15 | + Schema::create('widgets', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('type'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('mailchimp_fields', function (Blueprint $table) { |
|
| 15 | + Schema::create('mailchimp_fields', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('list_id'); |
| 18 | 18 | $table->string('merge_id')->unique('merge_id'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('company_sizes', function (Blueprint $table) { |
|
| 15 | + Schema::create('company_sizes', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('short'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('plan_prices', function (Blueprint $table) { |
|
| 15 | + Schema::create('plan_prices', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('plan_id')->unsigned(); |
| 18 | 18 | $table->string('currency'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('account_activates', function (Blueprint $table) { |
|
| 15 | + Schema::create('account_activates', function(Blueprint $table) { |
|
| 16 | 16 | $table->string('email')->index(); |
| 17 | 17 | $table->string('token')->index(); |
| 18 | 18 | $table->timestamps(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('invoices', function (Blueprint $table) { |
|
| 15 | + Schema::create('invoices', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('user_id')->unsigned()->index('invoices_user_id_foreign'); |
| 18 | 18 | $table->string('number'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('products', function (Blueprint $table) { |
|
| 15 | + Schema::table('products', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('group')->references('id')->on('product_groups')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 17 | 17 | $table->foreign('type')->references('id')->on('product_types')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 18 | 18 | }); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('products', function (Blueprint $table) { |
|
| 28 | + Schema::table('products', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropForeign('products_group_foreign'); |
| 30 | 30 | $table->dropForeign('products_type_foreign'); |
| 31 | 31 | }); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('group_features', function (Blueprint $table) { |
|
| 15 | + Schema::table('group_features', 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('group_features', function (Blueprint $table) { |
|
| 27 | + Schema::table('group_features', function(Blueprint $table) { |
|
| 28 | 28 | $table->dropForeign('group_features_group_id_foreign'); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('order_invoice_relations', function (Blueprint $table) { |
|
| 15 | + Schema::table('order_invoice_relations', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('invoice_id')->references('id')->on('invoices')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 17 | 17 | $table->foreign('order_id')->references('id')->on('orders')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 18 | 18 | }); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('order_invoice_relations', function (Blueprint $table) { |
|
| 28 | + Schema::table('order_invoice_relations', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropForeign('order_invoice_relations_invoice_id_foreign'); |
| 30 | 30 | $table->dropForeign('order_invoice_relations_order_id_foreign'); |
| 31 | 31 | }); |