Database migration is outside the scope of ModeShape (or even Infinispan for that matter). It's something a particular database vendor should handle.
One thing you can try is using ModeShape's backup & restore (Backup and restore - ModeShape 4 - Project Documentation Editor) :
- backup your repository using the old db
- change the configuration and start the repository using the new & empty db
- restore the backup in the new repository
I had solve the problem,modeshape has cache in Jboss Service