Register   Login
     
  Latest Posts  
RE: I cant get rss feeds to work correctly
by smcculloch on 11/23/2008 10:27 AM
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
RE: I cant get rss feeds to work correctly
by davidthomson on 11/22/2008 11:14 PM
Google Maps
by bmurphy on 11/22/2008 11:11 PM
RE: News Articles 301 Redirect
by swebster on 11/22/2008 10:47 PM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 10:22 PM
  Forums  
Subject: Upgrading DNN 3.0.12 to 3.0.13 with News Articles Installed
Prev Next
You are not authorized to post a reply.

Author Messages
Bradley MolzenUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:113

4/06/2005 9:26 AM  

When I performed the DNN upgrade from 3.0.12 to 3.0.13, the upgrade errored out.  Even though the code I dropped on top of my install runs fine (haven't tested everything though), the database script did not run correctly it seems.


I ran it manually, and this is the first error in the script:


The constraint 'PK_Users' is being referenced by table 'DnnForge_NewsArticles_Article', foreign key constraint 'FK_DnnForge_NewsArticles_Article_Users'.


Therefore, a few errors following in the script. 


I'm going to try and figure out what needs to be added to the script to fix this, but if anyone has already gone through this I'd appreciate the help.


Thx.

Bradley MolzenUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:113

4/06/2005 9:31 AM  

This seems to have worked.  I first had to drop the FK Constraint, then let it Alter the Users table...  then had to re-add the constraint.


At the very beginning of the 03.00.13.SqlDataProvider script I added:


ALTER TABLE DnnForge_NewsArticles_Article
 DROP CONSTRAINT FK_DnnForge_NewsArticles_Article_Users
GO


Then after this:


ALTER TABLE Users ADD CONSTRAINT
 PK_Users PRIMARY KEY CLUSTERED
 (
 UserID
 ) ON [PRIMARY]


GO


I added this to put the constraint back... did this with AuthorID... I hope that's right!!


ALTER TABLE DnnForge_NewsArticles_Article WITH NOCHECK ADD CONSTRAINT
 FK_DnnForge_NewsArticles_Article_Users FOREIGN KEY
 (
 AuthorID
 ) REFERENCES Users
 (
 UserID
 ) ON DELETE CASCADE
  NOT FOR REPLICATION
GO


 


Anyone care to verify?  SQL scripting is not my strong suit.  Drinking is......  


p.s.  I still get an error, unrelated I believe:


Server: Msg 2705, Level 16, State 4, Line 2
Column names in each table must be unique. Column name 'Email' in table 'Users' is specified more than once.


but I'm choosing to ignore it. 

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12449


4/06/2005 9:38 AM  
Hmm - I might release a patch in the morning that just drops that constraint completely. Its hard to know what the core is going to do in the future. The problem is that you get orphaned records

Scott McCulloch
Site Administrator
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12449


4/06/2005 10:00 AM  
I've updated news articles to drop this foreign key so it will not cause these problems. I advise people to update to the News Articles 00.02.07 or later before upgrading to DotNetNuke 03.00.13.

Scott McCulloch
Site Administrator
Jack HoelzUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:810


4/06/2005 1:31 PM  
I have upgraded several sites to .13 that had NA installed. Are there any issues if the upgrade went ok?

Get The Net!!

Jack Hoelz
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > Upgrading DNN 3.0.12 to 3.0.13 with News Articles Installed



ActiveForums 3.7