Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Is uninstalling a module also removes all DB refs (clean up)?Is uninstalling a module also removes all DB refs (clean up)?
Previous
 
Next
New Post
6/30/2013 6:40 AM
 
Is uninstalling a module also removes all DB refs (clean up)?

Does it also remove the modules from the pages its in?

 
New Post
6/30/2013 8:19 AM
 
when uninstalling a module, all instances are deleted from all pages, the database objects are removed (according to uninstall.sql script included with the module) and, if selected, all module files are deleted

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/1/2013 3:42 AM
 

If you want to uninstall a module but keep it's data. Then go to the modules folder /DesktopModules/CompanyName/ModuleName and delete the uninstall.SqlDataProvider file

This way that script won't run when the module is removed and the data will stay intact.


Sr. Software Engineer
 
New Post
7/1/2013 5:27 AM
 
Jonathan,

at least with the modules that have set a foreign key to the ModuleId with cascading deletion - and most propably this is a vast majority of modules - this method would not work. As the modules are deleted from the Modules table, all depending records from the module's table(s) would be deleted as well, so if the uninstall script is not run, this would result in some empty tables.

To keep the data I would look for some way to export them, or - using your method - remove the foreign key constraints and/or triggers that delete records in the module's table(s) when records in the core table(s) (Modules, Portals, Users...) are deleted before uninstalling.

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Is uninstalling a module also removes all DB refs (clean up)?Is uninstalling a module also removes all DB refs (clean up)?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out