Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
feat(core): add taxon→category/collection migration to 5.6→6.0 manifest
Łukasz Adamczyk811c1a5cc2a6
diff --git a/spree/core/lib/spree/upgrades/5_6_to_6_0/manifest.yml b/spree/core/lib/spree/upgrades/5_6_to_6_0/manifest.ymlindex 6e9a01dadc..346fe86f3f 100644--- a/spree/core/lib/spree/upgrades/5_6_to_6_0/manifest.yml+++ b/spree/core/lib/spree/upgrades/5_6_to_6_0/manifest.yml@@ -33,3 +33,22 @@ steps:Run spree:media:migrate_master_images_to_product_media first and let itsjobs finish, so no master-pinned media is lost when ghost masters aredeleted.++ - id: migrate_taxons_to_categories_and_collections+ name: "Migrate taxons to categories and collections"+ task: "spree:migrate_taxons_to_categories_and_collections"+ notes: |+ Migrates rule-based (automatic) taxons into Spree::Collection — copying+ their rules, product membership and translations, and moving the ActionText+ description, images, custom fields and slugs onto the new collection — then+ deletes the migrated automatic taxon. Manual taxons stay as categories.++ Severs the taxonomy structure: backfills store_id from the taxonomy, drops+ taxonomy roots left childless, and nulls taxonomy_id on the survivors+ (categories are store-owned in 6.0). Finally backfills the renamed+ class-name strings ('Spree::Taxon*' -> 'Spree::Category*') across the+ metafield, attachment, ActionText, friendly_id slug and promotion-rule+ columns.++ Idempotent. Multi-tenant installs run the per-tenant override shipped by+ spree_multi_tenant.