File tree 4 files changed +22
-8
lines changed
4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ private function getTable(string $tableName): string
58
58
public function getQuery (array $ skus ): Select
59
59
{
60
60
$ connection = $ this ->resourceConnection ->getConnection ();
61
+ $ selects = [];
61
62
foreach ($ this ->getStocks () as $ stockId ) {
62
63
$ stockId = (int )$ stockId ;
63
64
if ($ this ->defaultStockProvider ->getId () === $ stockId ) {
Original file line number Diff line number Diff line change 8
8
<schema xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
9
xsi : noNamespaceSchemaLocation =" urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd" >
10
10
<table name =" inventory_data_exporter_stock_status" resource =" default" engine =" innodb" comment =" Inventory Stock Status Feed Storage" >
11
+ <column xsi : type =" varchar"
12
+ name =" id"
13
+ padding =" 10"
14
+ nullable =" false"
15
+ length =" 64"
16
+ comment =" ID"
17
+ />
11
18
<column xsi : type =" int"
12
- name =" id"
13
- padding =" 10"
14
- unsigned =" true"
15
- nullable =" false"
16
- comment =" ID"
17
- onCreate =" migrateDataFromJSON(JSON_EXTRACT(feed_data, '$.id'))"
19
+ name =" stock_id"
20
+ padding =" 10"
21
+ unsigned =" true"
22
+ nullable =" false"
23
+ comment =" Stock ID"
24
+ />
25
+ <column xsi : type =" varchar"
26
+ name =" sku"
27
+ nullable =" false"
28
+ length =" 64"
29
+ comment =" Product SKU"
18
30
/>
19
31
<column
20
32
xsi : type =" mediumtext"
Original file line number Diff line number Diff line change 8
8
},
9
9
"column" : {
10
10
"id" : true ,
11
- "sku" : true ,
12
- "item_id" : true ,
13
11
"stock_id" : true ,
12
+ "sku" : true ,
14
13
"feed_data" : true ,
15
14
"modified_at" : true ,
16
15
"is_deleted" : true
Original file line number Diff line number Diff line change 40
40
<arguments >
41
41
<argument name =" mapping" xsi : type =" array" >
42
42
<item name =" id" xsi : type =" string" >id</item >
43
+ <item name =" stock_id" xsi : type =" string" >stockId</item >
44
+ <item name =" sku" xsi : type =" string" >sku</item >
43
45
</argument >
44
46
</arguments >
45
47
</virtualType >
You can’t perform that action at this time.
0 commit comments