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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Recreating PortalID 0Recreating PortalID 0
Previous
 
Next
New Post
2/6/2011 8:15 PM
 
I've lost the portal with portalID 0 in a couple of DNN installs as a result of splitting out DNN installs to get single-portal DNN installs for certain portals.

Now I have a need to implement a module that depends on the existence of portal with portalid 0.

I am looking at creating a new portal which will have a different PortalID initially, and then updating all instances of PortalID to be 0 for that portal.

Anyone done this before, and know just how many tables I'll have to touch?

portals
portalalias
profile
profilepropertydefinition
rolegroups
roles
sitelog
skins
systemmessages
tabs
urls
urltracking
userportals
usersonline
vendors

<others?>

if exist in any of those (may not in all)
I won't deploy any modules or do any editing of content before trying to move portalID n to PortalID 0.

I will, of course, take a copy of the DNN install and set it up locally and practice there first, and test.

Any thoughts / experiences / advice welcome.

pmgerholdt
 
New Post
2/7/2011 3:02 AM
 
Check for all tables with columns PortalID. You might need to duplicate the record in Portals Table and adjust PortalId for the duplicate to 0 before trying to update PortalId for any of the other tables. Btw it sounds like a bad design of the module, requiring portal 0 to exist. If a default is required, it should use first id of portals collection.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/7/2011 8:12 AM
 
I recently had to split off a single portal from a multi-portal install and although I initially thought it would be good to adjust all references to this site's PortalID (6) to 0 in the database I soon decided that it would not only be a time-consuming but also difficult process due to the many foreign key relationships on PortalID between various core and third party tables.

As Sebastian indicated, a module should not depend on the existance of a portal with PortalID = 0. I would suggest that you contact the module developer or if you are the developer, reconsider this dependency.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Recreating PortalID 0Recreating PortalID 0


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