# Symbioquine’s 2.x Migration Testing Log Part 2

**URL:** <https://farmos.discourse.group/t/symbioquine-s-2-x-migration-testing-log-part-2/771>\
**Category:** Development\
**Created:** [April 21, 2021, 5:21pm UTC](https://farmos.discourse.group/t/symbioquine-s-2-x-migration-testing-log-part-2/771 "2021-04-21T17:21:52Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Symbioquine](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/symbioquine/32/284_2.png) [@Symbioquine](https://farmos.discourse.group/u/Symbioquine)\
**Post date:** [April 22, 2021, 7:15pm UTC](https://farmos.discourse.group/t/symbioquine-s-2-x-migration-testing-log-part-2/771/7 "2021-04-22T19:15:20Z")

</div>

> [@mstenta](#):
>
> Can you make a simple stub migration for your custom asset type? Even if it just maps to an existing asset type for now, and just pulls in the name or something. That would at least allow for the mapping to happen, and serve as a placeholder for when you do port it.

Easier to just port the [asset type](https://github.com/symbioquine/farmOS_money_asset).

With that and a bit of head-scratching about why the inventory migration wasn’t happening, I got it working;

**docker-compose.yml**

```diff
         su www-data -s /bin/bash <<'EOF'
- composer config repositories.farmos_dev_modules '{"type": "path", "url": "/farmos_dev_modules/farmos_seed_asset"}'
+ composer config repositories.farmos_dev_modules '{"type": "path", "url": "/farmos_dev_modules/*"}'
 
             composer require symbioquine/farmos_seed_asset @dev
             drush --root=/opt/drupal pm-enable farmos_seed_asset
 
+ composer require symbioquine/farmos_money_asset @dev
+ drush --root=/opt/drupal pm-enable farmos_money_asset
         EOF

```

```diff
           drush --root=/opt/drupal pm-enable --yes farm_group
+ drush --root=/opt/drupal pm-enable --yes farm_inventory
           drush --root=/opt/drupal pm-enable --yes farm_migrate
           drush --root=/opt/drupal migrate:import --group=farm_migrate_config

```

```diff
       - './php-custom.ini:/usr/local/etc/php/conf.d/php-custom.ini'
 
       - '../../farmOS_seed_asset/farmos_seed_asset:/farmos_dev_modules/farmos_seed_asset'
       - '../../farmOS_seed_asset/composer.json:/farmos_dev_modules/farmos_seed_asset/composer.json'
+ 
+ - '../../farmOS_money_asset/farmos_money_asset:/farmos_dev_modules/farmos_money_asset'
+ - '../../farmOS_money_asset/composer.json:/farmos_dev_modules/farmos_money_asset/composer.json'
+ 
       - './sites/default/files:/opt/farmOS_1x_files:ro'

```

The `farm_migrate_inventory` and `farm_migrate_log_activity` then were able to complete successfully.

```sh
 2669/2669 [============================] 100% [notice] Processed 2669 items (2669 created, 0 updated, 0 failed, 0 ignored) - done with 'farm_migrate_inventory'

 463/463 [============================] 100% [notice] Processed 463 items (463 created, 0 updated, 0 failed, 0 ignored) - done with 'farm_migrate_quantity_standard'
+ drush --root=/opt/drupal migrate:import --group=farm_migrate_log

 468/468 [============================] 100% [notice] Processed 468 items (468 created, 0 updated, 0 failed, 0 ignored) - done with 'farm_migrate_log_activity'

```

Further, some new stuff is now pretty much working;

- Inventory quantities - including those for our custom asset types (though not with the right units yet)
- Group membership

 ![image](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/e3c143c9b97500792800d80663bc916222cd86eb.jpeg) ![image](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/11cf956dd33a9e139aec6f14851bd2731fe2ea7f.png)

And to summarize my current status;

- Almost all data migrated - now including inventory and group membership
- Need to look into scripting some sort of parity mechanism to validate what data is missing
- Need to expand seed asset fields and the associated migration logic
- Need to port some additional manual site customization and custom tools into 2.x modules
- Need to look into a few observed quirks;
  - Seed asset migration 2459 vs 2460 count discrepancy - [Symbioquine's 2.x Migration Testing Log - #23 by Symbioquine](https://farmos.discourse.group/t/symbioquines-2-x-migration-testing-log/660/23)
  - Figure out how to change inventory units for migration of custom asset types (ref: [#farmOS:matrix.org discussion](https://matrix.to/#/!rxZezKXfxOKJxTgNGs:matrix.org/$161670874328997GKRXk:matrix.org?via=matrix.org))

- It would be nice to change all uploaded files to be private as part of the migration

---

_[View the full topic](https://farmos.discourse.group/t/symbioquine-s-2-x-migration-testing-log-part-2/771)._
