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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryConverting from DNNDownload 3Converting from DNNDownload 3
Previous
 
Next
New Post
10/13/2005 2:39 PM
 
Hi Dan

I no longer have a copy of the emails that Joel and I were sending back and forth so I'm going from memory here and more work needs to be done to get everything to work (Joel decided to reupload the files manually).

In the 03.00.00 SQLProvider script under the first section, Steve has the script copying tables from the GRM2 Repository tables into the GRM3 version of the tables (the name changed). What we tried was taking those two lines and changing the source table to point to the DNNDownloads tables. Seemed to work just fine. Now when you install GRM3 it should take the info and work just like it should and all those DNNDownload files should belong to GRM3. But you're not quite done yet.

The next thing that would need to be done is under the Modules table, all instances that are pointing to the ModuleDef for DNNDownloads needs to point to the ModuleDef for GRM. This is something that could be scripted but I never nailed down the procedure because of what happened next. In theory that should be the end of it but now that there are Categories in GRM (and this is where my memory is getting fuzzy) for whatever reason the DNNDownload items we copied earlier didn't belong to a category so when you browsed to the page it did show that GRM was installed and was pointing to it but nothing was loaded into the datagrid. It was at that point that Joel decided it re-upload everything into GRM3 manually but I believe the problem was that the Categories table wasn't getting updated like it should be on the install script. Why that happened, I don't know and I haven't had time to dig through the scripts to see if Steve references the GRM2 tables later and sets up the categories then or how it's done. I've got a couple of ideas that I'll try over the next couple of days and let you know if they work.


 
New Post
10/13/2005 2:59 PM
 

I should be able to spend some time this weekend to put together a script that will convert a DNNDownload installation to a GRM3 installation.

If you want to 'tinker' yourself until then... here's some help...

I'm not that familiar with DNNDownload and don't know what the table names are, but in the script snippets below, RepositoryObjects is the old GRM2 tablename, and grmRepositoryObjects is the new GRM3 tablename, so you might have to edit the tablename before running the snippets.

The following script will 'initialize' the Categories by looking for all the Repository Modules and inserting an 'ALL' category for each ModuleID into the grmRepositoryCategories table

 Declare @ModuleID int

 DECLARE myCursor CURSOR FOR
 SELECT DISTINCT ModuleID from {databaseOwner}{objectQualifier}RepositoryObjects
 OPEN myCursor

 FETCH NEXT FROM myCursor INTO @ModuleID
 WHILE @@FETCH_STATUS = 0
 BEGIN
    
     INSERT INTO {databaseOwner}{objectQualifier}grmRepositoryCategories (ModuleID, Category, ViewOrder) VALUES (@ModuleID, 'ALL', 0)
     FETCH NEXT FROM myCursor INTO @ModuleID

 END
 CLOSE myCursor
 DEALLOCATE myCursor

This next script will make sure that the grmRepositoryObjects table has the new CategoryId field

IF (SELECT COLUMNPROPERTY( OBJECT_ID('{databaseOwner}{objectQualifier}grmRepositoryObjects'),'CategoryId','AllowsNull')) IS NULL
ALTER TABLE {databaseOwner}{objectQualifier}grmRepositoryObjects ADD CategoryId nvarchar (50) NULL

This next script will go through all your Repository Objects, lookup the 'ALL' Category for it's ModuleID and set the CategoryID 

UPDATE {databaseOwner}{objectQualifier}grmRepositoryObjects
 SET CategoryId = (SELECT Cast(ItemID as varchar(2)) + ';' from {databaseOwner}{objectQualifier}grmRepositoryCategories
 WHERE {databaseOwner}{objectQualifier}grmRepositoryObjects.ModuleId={databaseOwner}{objectQualifier}grmRepositoryCategories.ModuleID)

 
New Post
10/21/2005 5:37 PM
 
sfabian@gooddogs.com wrote

I should be able to spend some time this weekend to put together a script that will convert a DNNDownload installation to a GRM3 installation.

Did you get a chance to put together any scripts?  I finally got a chance to look through the forums and saw you replied (wish e-mail notification worked).  I'm going to try and play with it a bit this weekend, not sure how far I'll get.

 

 
New Post
10/21/2005 6:08 PM
 

Notification is working for me Dan....

Good luck with testing it out. I think the script section the Steve posted earlier was exactly what we missed when I tried it before.

 
New Post
10/21/2005 9:22 PM
 
mikeh wrote

Notification is working for me Dan....

Good luck with testing it out. I think the script section the Steve posted earlier was exactly what we missed when I tried it before.

Your message came through with a notification, but it seems like people who are moderators (or something like that) can post without sending notification.  I have to go back through the forums to see if I got a response... Hmmmmmm

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryConverting from DNNDownload 3Converting from DNNDownload 3


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