Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have the client's site set up with 4 separate booking unit types.
Large Yurt - Sleeps 9
Basic Yurt - Sleeps 5
Medium Yurt - Sleeps 6
Large Yurt w-couch - Sleeps 9
Now he wants there to be only 2 unit types and reassign the exiting units into these two types.
Yurt
Large Yurt
What is the best way to do this without loosing any existing reservations or destroying any reports?
Comments
Comment #1
dorys CreditAttribution: dorys commentedAnyone?
Comment #2
ronald_istos CreditAttribution: ronald_istos commentedHi - changing the type of an entity could in theory be done if you are comfortable with the Entity API and Field API work and their database structure. You could attempt to fix this by intervening at that level but that would require quite a bit of testing.
Might be simpler to "retire" the existing units and create new Units and Types to fit the new structure you need. There is no simple fix I am afraid so really depends on your level of confidence with these parts of Drupal code.