Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
data_content_serialized.php
Go to the documentation of this file.
1 <?php
7 return [
8  '$replaceRules' => [
9  [
10  'table',
11  'field',
12  \Magento\Framework\Module\Setup\Migration::ENTITY_TYPE_MODEL,
13  \Magento\Framework\Module\Setup\Migration::FIELD_CONTENT_TYPE_SERIALIZED,
14  ],
15  ],
16  '$tableData' => [
17  ['field' => '{"max_text_length":255,"min_text_length":1}'],
18  ['field' => '{"model":"some random text"}'],
19  ],
20  '$expected' => [
21  'updates' => [
22  [
23  'table' => 'table',
24  'field' => 'field',
25  'to' => '{"model":"Magento\\CatalogRule\\Model\\Rule\\Condition\\Combine"}',
26  'from' => ['`field` = ?' => '{"model":"catalogrule\/rule_condition_combine"}'],
27  ],
28  ],
29  'aliases_map' => [
30  \Magento\Framework\Module\Setup\Migration::ENTITY_TYPE_MODEL => [
31  'catalogrule/rule_condition_combine' => 'Magento\CatalogRule\Model\Rule\Condition\Combine',
32  ],
33  ],
34  ]
35 ];