@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('highlight', function (Blueprint $table) { |
|
16 | + Schema::create('highlight', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('title')->nullable(); |
19 | 19 | $table->string('tag'); |
@@ -34,6 +34,6 @@ |
||
34 | 34 | */ |
35 | 35 | public function down() |
36 | 36 | { |
37 | - // |
|
37 | + // |
|
38 | 38 | } |
39 | 39 | } |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('general_setting', function (Blueprint $table) { |
|
15 | + Schema::create('general_setting', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('name'); |
18 | 18 | $table->string('value')->nullable(); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $table->foreign('shop_id')->references('id')->on('shop')->onDelete('cascade'); |
22 | 22 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
23 | 23 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
24 | - $table->unique(array('name','shop_id'), 'unique_general_setting_title'); |
|
24 | + $table->unique(array('name', 'shop_id'), 'unique_general_setting_title'); |
|
25 | 25 | $table->timestamps(); |
26 | 26 | }); |
27 | 27 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('product_attribute', function (Blueprint $table) { |
|
16 | + Schema::create('product_attribute', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->boolean('default_on')->default(false); |
19 | 19 | $table->integer('product_id')->unsigned(); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $table->timestamps(); |
37 | 37 | }); |
38 | 38 | |
39 | - Schema::create('product_attribute_combination', function (Blueprint $table) { |
|
39 | + Schema::create('product_attribute_combination', function(Blueprint $table) { |
|
40 | 40 | $table->increments('id'); |
41 | 41 | $table->integer('product_attribute_id')->unsigned(); |
42 | 42 | $table->foreign('product_attribute_id', 'pac_product_attribute_id_fk')->references('id')->on('product_attribute')->onDelete('cascade'); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $table->timestamps(); |
48 | 48 | }); |
49 | 49 | |
50 | - Schema::create('product_attribute_image', function (Blueprint $table) { |
|
50 | + Schema::create('product_attribute_image', function(Blueprint $table) { |
|
51 | 51 | $table->increments('id'); |
52 | 52 | $table->integer('product_attribute_id')->unsigned(); |
53 | 53 | $table->foreign('product_attribute_id', 'pai_product_attribute_id_fk')->references('id')->on('product_attribute')->onDelete('cascade'); |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | $table->timestamps(); |
59 | 59 | }); |
60 | 60 | |
61 | - Schema::table('product', function (Blueprint $table) { |
|
61 | + Schema::table('product', function(Blueprint $table) { |
|
62 | 62 | $table->integer('leading_atrribute_group_id')->unsigned()->nullable(); |
63 | 63 | $table->foreign('leading_atrribute_group_id', 'p_leading_atrribute_group_id_fk')->references('id')->on('attribute_group')->onDelete('set null'); |
64 | 64 | }); |
65 | 65 | |
66 | 66 | |
67 | - Schema::table('product_waiting_list', function (Blueprint $table) { |
|
67 | + Schema::table('product_waiting_list', function(Blueprint $table) { |
|
68 | 68 | $table->foreign('product_attribute_id', 'pwl_product_attribute_id_fk')->references('id')->on('product_attribute')->onDelete('set null'); |
69 | 69 | }); |
70 | 70 | } |
@@ -34,6 +34,6 @@ |
||
34 | 34 | */ |
35 | 35 | public function down() |
36 | 36 | { |
37 | - // |
|
37 | + // |
|
38 | 38 | } |
39 | 39 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('extra_field', function (Blueprint $table) { |
|
16 | + Schema::create('extra_field', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->boolean('all_products')->default(false); |
19 | 19 | $table->boolean('filterable')->default(false); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $table->timestamps(); |
26 | 26 | }); |
27 | 27 | |
28 | - Schema::create('extra_field_default_value', function (Blueprint $table) { |
|
28 | + Schema::create('extra_field_default_value', function(Blueprint $table) { |
|
29 | 29 | $table->increments('id'); |
30 | 30 | $table->string('value'); |
31 | 31 | $table->integer('extra_field_id')->unsigned(); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
34 | 34 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
35 | 35 | $table->timestamps(); |
36 | - $table->unique(array('extra_field_id','value'), 'unique_extra_field_default_value'); |
|
36 | + $table->unique(array('extra_field_id', 'value'), 'unique_extra_field_default_value'); |
|
37 | 37 | }); |
38 | 38 | } |
39 | 39 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('payment_method', function (Blueprint $table) { |
|
16 | + Schema::table('payment_method', function(Blueprint $table) { |
|
17 | 17 | $table->integer('order_confirmed_order_status_id')->unsigned()->nullable(); |
18 | 18 | $table->foreign('order_confirmed_order_status_id')->references('id')->on('order_status')->onDelete('set null'); |
19 | 19 | $table->integer('payment_completed_order_status_id')->unsigned()->nullable(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('shop', function (Blueprint $table) { |
|
15 | + Schema::create('shop', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->boolean('active')->default(false); |
18 | 18 | $table->boolean('wholesale')->default(false); |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | public function up() |
15 | 15 | { |
16 | 16 | // Creates the users table |
17 | - Schema::create('product', function ($table) { |
|
17 | + Schema::create('product', function($table) { |
|
18 | 18 | $table->increments('id'); |
19 | 19 | $table->boolean('active')->default(false); |
20 | 20 | $table->enum('type', array('single', 'group', 'variation'))->default('single'); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $table->integer('rank')->default(0); |
44 | 44 | $table->string('slug'); |
45 | 45 | |
46 | - $table->integer('product_category_id')->unsigned()->nullable(); ; |
|
46 | + $table->integer('product_category_id')->unsigned()->nullable(); ; |
|
47 | 47 | $table->foreign('product_category_id')->references('id')->on('product_category')->onDelete('set null'); |
48 | 48 | $table->integer('tax_rate_id')->unsigned()->nullable(); |
49 | 49 | $table->foreign('tax_rate_id')->references('id')->on('tax_rate')->onDelete('set null'); |
@@ -55,12 +55,12 @@ discard block |
||
55 | 55 | |
56 | 56 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
57 | 57 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
58 | - $table->unique(array('title','shop_id'), 'unique_product_title'); |
|
58 | + $table->unique(array('title', 'shop_id'), 'unique_product_title'); |
|
59 | 59 | $table->timestamps(); |
60 | 60 | }); |
61 | 61 | |
62 | 62 | |
63 | - Schema::create('product_image', function (Blueprint $table) { |
|
63 | + Schema::create('product_image', function(Blueprint $table) { |
|
64 | 64 | $table->increments('id'); |
65 | 65 | $table->integer('product_id')->unsigned(); |
66 | 66 | $table->foreign('product_id')->references('id')->on('product')->onDelete('cascade'); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | }); |
79 | 79 | |
80 | 80 | |
81 | - Schema::create('product_image_attribute', function (Blueprint $table) { |
|
81 | + Schema::create('product_image_attribute', function(Blueprint $table) { |
|
82 | 82 | $table->increments('id'); |
83 | 83 | $table->integer('attribute_id')->unsigned(); |
84 | 84 | $table->foreign('attribute_id')->references('id')->on('attribute')->onDelete('cascade'); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $table->timestamps(); |
90 | 90 | }); |
91 | 91 | |
92 | - Schema::create('product_amount_option', function (Blueprint $table) { |
|
92 | + Schema::create('product_amount_option', function(Blueprint $table) { |
|
93 | 93 | $table->increments('id'); |
94 | 94 | $table->boolean('default_on')->default(false); |
95 | 95 | $table->integer('product_id')->unsigned(); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | }); |
106 | 106 | |
107 | 107 | |
108 | - Schema::create('product_amount_series', function (Blueprint $table) { |
|
108 | + Schema::create('product_amount_series', function(Blueprint $table) { |
|
109 | 109 | $table->increments('id'); |
110 | 110 | $table->boolean('active')->default(false); |
111 | 111 | $table->integer('product_id')->unsigned(); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | }); |
120 | 120 | |
121 | 121 | |
122 | - Schema::create('product_waiting_list', function (Blueprint $table) { |
|
122 | + Schema::create('product_waiting_list', function(Blueprint $table) { |
|
123 | 123 | $table->increments('id'); |
124 | 124 | $table->integer('product_id')->unsigned(); |
125 | 125 | $table->foreign('product_id')->references('id')->on('product')->onDelete('cascade'); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | }); |
131 | 131 | |
132 | 132 | |
133 | - Schema::create('product_related_product', function (Blueprint $table) { |
|
133 | + Schema::create('product_related_product', function(Blueprint $table) { |
|
134 | 134 | $table->increments('id'); |
135 | 135 | $table->integer('product_id')->unsigned(); |
136 | 136 | $table->foreign('product_id')->references('id')->on('product')->onDelete('cascade'); |
@@ -140,27 +140,27 @@ discard block |
||
140 | 140 | }); |
141 | 141 | |
142 | 142 | |
143 | - Schema::create('product_sub_product_category', function (Blueprint $table) { |
|
143 | + Schema::create('product_sub_product_category', function(Blueprint $table) { |
|
144 | 144 | $table->increments('id'); |
145 | 145 | $table->unsignedInteger('product_id'); |
146 | 146 | $table->foreign('product_id', 'pspc_product_id_fk')->references('id')->on('product')->onDelete('cascade'); |
147 | 147 | $table->unsignedInteger('product_category_id'); |
148 | 148 | $table->foreign('product_category_id', 'pspc_product_category_id_fk')->references('id')->on('product_category')->onDelete('cascade'); |
149 | - $table->unique(array('product_id','product_category_id'), 'unique_product_category'); |
|
149 | + $table->unique(array('product_id', 'product_category_id'), 'unique_product_category'); |
|
150 | 150 | $table->timestamps(); |
151 | 151 | }); |
152 | 152 | |
153 | - Schema::create('product_extra_field_value', function (Blueprint $table) { |
|
153 | + Schema::create('product_extra_field_value', function(Blueprint $table) { |
|
154 | 154 | $table->increments('id'); |
155 | 155 | $table->string('value')->nullable(); |
156 | 156 | |
157 | - $table->integer('product_id')->unsigned()->nullable(); ; |
|
157 | + $table->integer('product_id')->unsigned()->nullable(); ; |
|
158 | 158 | $table->foreign('product_id', 'pefv_product_id_fk')->references('id')->on('product')->onDelete('cascade'); |
159 | 159 | |
160 | 160 | $table->integer('extra_field_id')->unsigned()->nullable(); |
161 | 161 | $table->foreign('extra_field_id', 'pefv_extra_field_id_fk')->references('id')->on('extra_field')->onDelete('cascade'); |
162 | 162 | |
163 | - $table->integer('extra_field_default_value_id')->unsigned()->nullable(); ; |
|
163 | + $table->integer('extra_field_default_value_id')->unsigned()->nullable(); ; |
|
164 | 164 | $table->foreign('extra_field_default_value_id', 'pefv_extra_field_default_value_id_fk')->references('id')->on('extra_field_default_value')->onDelete('set null'); |
165 | 165 | |
166 | 166 | $table->integer('shop_id')->unsigned(); |
@@ -170,10 +170,10 @@ discard block |
||
170 | 170 | $table->foreign('modified_by_user_id', 'pefv_modified_by_user_id_fk')->references('id')->on('user')->onDelete('set null'); |
171 | 171 | |
172 | 172 | $table->timestamps(); |
173 | - $table->unique(array('product_id','extra_field_id'), 'unique_product_extra_field_value'); |
|
173 | + $table->unique(array('product_id', 'extra_field_id'), 'unique_product_extra_field_value'); |
|
174 | 174 | }); |
175 | 175 | |
176 | - Schema::create('product_tag_group', function (Blueprint $table) { |
|
176 | + Schema::create('product_tag_group', function(Blueprint $table) { |
|
177 | 177 | $table->increments('id'); |
178 | 178 | $table->boolean('active')->default(false); |
179 | 179 | $table->string('tag')->nullable(); |
@@ -182,12 +182,12 @@ discard block |
||
182 | 182 | $table->foreign('shop_id')->references('id')->on('shop')->onDelete('cascade'); |
183 | 183 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
184 | 184 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
185 | - $table->unique(array('tag','shop_id'), 'unique_product_tag_group_tag'); |
|
185 | + $table->unique(array('tag', 'shop_id'), 'unique_product_tag_group_tag'); |
|
186 | 186 | $table->timestamps(); |
187 | 187 | }); |
188 | 188 | |
189 | 189 | |
190 | - Schema::create('product_tag_group_related_product', function (Blueprint $table) { |
|
190 | + Schema::create('product_tag_group_related_product', function(Blueprint $table) { |
|
191 | 191 | $table->increments('id'); |
192 | 192 | $table->integer('product_tag_group_id')->unsigned(); |
193 | 193 | $table->foreign('product_tag_group_id', 'ptgrp_product_tag_group_id_fk')->references('id')->on('product_tag_group')->onDelete('cascade'); |
@@ -34,6 +34,6 @@ |
||
34 | 34 | */ |
35 | 35 | public function down() |
36 | 36 | { |
37 | - // |
|
37 | + // |
|
38 | 38 | } |
39 | 39 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('product_category_highlight_product', function (Blueprint $table) { |
|
15 | + Schema::create('product_category_highlight_product', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('product_id')->unsigned(); |
18 | 18 | $table->foreign('product_id', 'pchp_product_id_fk')->references('id')->on('product')->onDelete('cascade'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('client', function (Blueprint $table) { |
|
16 | + Schema::create('client', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->boolean('active')->default(false); |
19 | 19 | $table->enum('type', array('consumer', 'wholesale'))->default('consumer'); |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
44 | 44 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
45 | 45 | $table->timestamps(); |
46 | - $table->unique(array('email','shop_id'), 'unique_email'); |
|
46 | + $table->unique(array('email', 'shop_id'), 'unique_email'); |
|
47 | 47 | }); |
48 | 48 | |
49 | - Schema::create('client_address', function (Blueprint $table) { |
|
49 | + Schema::create('client_address', function(Blueprint $table) { |
|
50 | 50 | $table->increments('id'); |
51 | 51 | $table->integer('client_id')->unsigned(); |
52 | 52 | $table->foreign('client_id')->references('id')->on('client')->onDelete('cascade'); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $table->timestamps(); |
70 | 70 | }); |
71 | 71 | |
72 | - Schema::table('client', function (Blueprint $table) { |
|
72 | + Schema::table('client', function(Blueprint $table) { |
|
73 | 73 | $table->foreign('delivery_client_address_id')->references('id')->on('client_address')->onDelete('set null'); |
74 | 74 | $table->foreign('bill_client_address_id')->references('id')->on('client_address')->onDelete('set null'); |
75 | 75 | }); |