Adding changes to allow migration in plugins. Rectifying uninstallation error

Signed-off-by: Arpit Goyal <agmps17@gmail.com>