Change Administration/Account to System/User without losing password

0
How to make a specialized object become a generalized object? All the specialized attributes are no longer needed and already deleted for each object. But now we need to replace the specialized object by a generalized object, without delete and create. The use case: We need to remove the module Administration from an app. One step is that the useraccounts are now all Administration.Account and they need to be a System.User. This needs to be done while maintaining each user’ password.
asked
2 answers
1

Make a hotfix that iterate over Account and create a new User. Then manually set all the references and values. Now the name is offcourse problamatic so you should store that first in a string and change the Account/name object first by adding OLD to the name otherwise you could not create the new user with the same name. The rest should work I would think.

Regards,

Ronald

 

answered
1

Can't your remove the Account entity from the domain model? As account is a specialization of System.User, the current user data should be maintained in the System.User table I guess? 

answered