This project is not covered by Drupal’s security advisory policy.
The module provides a drush command drush entity:change-id [entity_type_id] [old_id] [new_id] to update entity IDs while maintaining data integrity across the entire database schema.
Automated Schema Mapping: Leverages `EntityStorageInterface` and its `tableMapping` to dynamically identify every table and column associated with a specific entity type, ensuring no core data is missed during an ID change.
Automatic Reference Handling: Scans the database for all `entity_reference` and `dynamic_entity_reference` fields pointing to the target entity type and updates those foreign keys simultaneously to preserve relationships.
Direct SQL Execution: Updates are performed using direct database queries rather than the Entity API. This ensures high performance and prevents the overhead of loading and saving individual entities.
Because this module operates directly on the database, no entity update hooks are dispatched during the process. Absolutely always backup your database before using the module!. Also, primary key auto increment is not yet adjusted automatically if new IDs exceed the current next id. This feature is mandatory, to get the module ready for version 1.0.0.
Project information
- Project categories: Developer tools, Import and export
- Ecosystem: Entity API
- Created by tomsaw on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
