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/21/2005 11:34 PM
 

Here is the data structure for DNNDownload (had enterprise manager generate a script):

CREATE TABLE [dbo].[HPS_DNNDownloads] (
 [ItemID] [int] IDENTITY (1, 1) NOT NULL ,
 [ModuleID] [int] NULL ,
 [CreatedByUser] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [CreatedDate] [datetime] NULL ,
 [UpdatedByUser] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [UpdatedDate] [datetime] NULL ,
 [Name] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Description] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Author] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [AuthorEmail] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [FileSize] [nvarchar] (12) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Downloads] [int] NULL ,
 [PreviewImage] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Image] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [FileName] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [Clicks] [int] NULL ,
 [RatingVotes] [bigint] NULL ,
 [RatingTotal] [bigint] NULL ,
 [RatingAverage] [float] NULL ,
 [Approved] [int] NULL ,
 [ShowEMail] [int] NULL ,
 [DownloadRoles] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[HPS_DNNDownloadsComments] (
 [CommentID] [int] IDENTITY (1, 1) NOT NULL ,
 [ItemID] [int] NOT NULL ,
 [CreatedByUser] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
 [CreatedDate] [datetime] NULL ,
 [Comment] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

After going through it for awhile, I think I'm getting the hang of how I could transfer it all over.  It looks like I have over 600 files in there, so it's not a small process.

One thing I am confused about is the physical location and naming of the files.  I don't see an entry in the database giving a path, but they appear to be sorted (in DNNDownload) into folders named after the uploading user.  Do I have to move those folders to the Respository folder or can I move them to a different folder?

I'll be looking into it a bit more this weekend, hope to have a test module setup soon so I can try out my theories on how it is supposed to work.

 

 
New Post
10/22/2005 5:42 PM
 
That table structure mimics the DNN2 table structure pretty closely Dan. If memory servers the only difference is the addition of DownloadRoles to DNNDownload.

If you go through the install scripts for GRM and change any references for RepositoryObjects and RepositoryComments to HPS_DNNDownloads and HPS_DNNDownloadsComments everything from those tables should convert once you run the install. Don't do a search/replace all though as the new tables are name grmRepositoryObjects etc. Once that's done if you edit the Modules table so that the ModuleDefs point to the GRM module definition you should be most of the way there.

As for the directory names. If memory serves (I'm not near the GRM2 source at the moment) the directory name is hardcoded in the code but a rename of the DNNDownload directory to Repository (or a copy of the directory renamed Repository) should do the trick.

Of course it's best to work on this on a backup database. I should have some time this evening to work on it so I'll send you what I've got for testing.
 
New Post
10/22/2005 10:47 PM
 
Dan, here's where I'm at. I changed the 03.00.00 SqlDataProvider script (which includes the code Steve posted earlier) and everything gets copied over like it should. I then wrote a small script that changes the ModuleDefID in the Modules table to point to the Repository instead of DNNDownloads. Now, unless I've missed something, that should be it but nothing is showing up on the page I had DNNDownloads on. The module shows up and I can upload a new file which gets installed into the repository and all looks good but when viewing there's nothing there. I'm going to keep working on it to see if I can figure out the problem.
 
New Post
10/22/2005 11:19 PM
 
Dan I got it to work. I think it might've been some differences in the way the comments table was set up or it may have been something as simple as the caching on development site. In any case I got it to work with my small test install. If you want the changed SQLDataProvider and update script fire me an email mike@gmss.org and I'll pass send it your way with some simple instructions.
 
New Post
10/27/2005 12:05 AM
 
Dan, I just want to verify that you got my latest email with the updated upgrade script.
 
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