|
3 | 3 | * Copyright © Magento, Inc. All rights reserved.
|
4 | 4 | * See COPYING.txt for license details.
|
5 | 5 | */
|
6 |
| - |
7 | 6 | namespace Magento\Wishlist\Setup\Patch\Data;
|
8 | 7 |
|
9 |
| -use Magento\Framework\DB\FieldDataConverterFactory; |
10 | 8 | use Magento\Framework\DB\DataConverter\SerializedToJson;
|
11 |
| -use Magento\Framework\DB\Select\QueryModifierFactory; |
| 9 | +use Magento\Framework\DB\FieldDataConverterFactory; |
12 | 10 | use Magento\Framework\DB\Query\Generator as QueryGenerator;
|
13 |
| -use Magento\Framework\App\ResourceConnection; |
| 11 | +use Magento\Framework\DB\Select\QueryModifierFactory; |
14 | 12 | use Magento\Framework\Setup\Patch\DataPatchInterface;
|
15 | 13 | use Magento\Framework\Setup\Patch\PatchVersionInterface;
|
16 | 14 |
|
17 | 15 | /**
|
18 |
| - * Class ConvertSerializedData |
19 |
| - * @package Magento\Wishlist\Setup\Patch |
| 16 | + * Convert serialized wishlist item data. |
20 | 17 | */
|
21 | 18 | class ConvertSerializedData implements DataPatchInterface, PatchVersionInterface
|
22 | 19 | {
|
@@ -60,37 +57,43 @@ public function __construct(
|
60 | 57 | }
|
61 | 58 |
|
62 | 59 | /**
|
63 |
| - * {@inheritdoc} |
| 60 | + * @inheritdoc |
64 | 61 | */
|
65 | 62 | public function apply()
|
66 | 63 | {
|
67 | 64 | $this->convertSerializedData();
|
68 | 65 | }
|
69 | 66 |
|
70 | 67 | /**
|
71 |
| - * {@inheritdoc} |
| 68 | + * @inheritdoc |
72 | 69 | */
|
73 | 70 | public static function getDependencies()
|
74 | 71 | {
|
75 | 72 | return [];
|
76 | 73 | }
|
77 | 74 |
|
78 | 75 | /**
|
79 |
| - * {@inheritdoc} |
| 76 | + * @inheritdoc |
80 | 77 | */
|
81 | 78 | public static function getVersion()
|
82 | 79 | {
|
83 | 80 | return '2.0.1';
|
84 | 81 | }
|
85 | 82 |
|
86 | 83 | /**
|
87 |
| - * {@inheritdoc} |
| 84 | + * @inheritdoc |
88 | 85 | */
|
89 | 86 | public function getAliases()
|
90 | 87 | {
|
91 | 88 | return [];
|
92 | 89 | }
|
93 |
| - |
| 90 | + |
| 91 | + /** |
| 92 | + * Convert serialized whishlist item data. |
| 93 | + * |
| 94 | + * @throws \Magento\Framework\DB\FieldDataConversionException |
| 95 | + * @throws \Magento\Framework\Exception\LocalizedException |
| 96 | + */ |
94 | 97 | private function convertSerializedData()
|
95 | 98 | {
|
96 | 99 | $connection = $this->moduleDataSetup->getConnection();
|
|
0 commit comments