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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCreating an upgrade packageCreating an upgrade package
Previous
 
Next
New Post
1/8/2013 4:14 PM
 

Hello,

 I have recently been working on a DotNetNuke module, more specific, implementing the Google geochart (https://developers.google.com/chart/interactive/docs/gallery/geochart) as a simple to use module. I utilize the SQL-database. 

However, after I released it for the website I'm working on, filled the database and set everything up, I made some changes to the module. I was trying to create an upgrade package, instead of a source and an install package, as I don't want to empty the whole database on updating, that would be wasted work!

Is there a way you can disable the execution of the SQL-code? Or do I have to manually remove this code? I have followed Chris Hammond's tutorial (So I use MSBuild packaging). Your support please! :-)

 Thanks for reading,

Tom

 
New Post
1/8/2013 4:51 PM
 
I might have found a solution, but still not completely what I wanted. Chris uses in his sql:

If exists (table)
Drop table
Create table

But the book module programming (Mitchel Sellers) uses

If not exists (table)
Create table

This method only works when you make no changes to the table structure, but I guess you wouldn't want to keep the data in that case. Does this sound like a solution you would apply?

Tom
 
New Post
1/8/2013 5:21 PM
 
I think the same package is implicitly used for both install and upgrade.

I don't know the exact details, but I think the idea is that you bump your version number and supply an SQL script that turns the DB from V-1 to V.

When the module is installed the system looks at the V already installed, the V being installed, and applies the scripts that move from one to the other.

I think it's been like this forever.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
1/8/2013 9:04 PM
 
In fact, if you only upgrade the version number of your install package, it's really a upgrade package. It won;t re-run the sql-script of last version. If you want to do some changes of the database, just write another change-script and up its verion number (like 01.00.01.SqlDataProvider).

NovaSoftware ---a professional outsourcing company in China .
* More than 6 years' offshore experience in DNN
* Successfully developed 30+ websites , 250+ DNN modules, 50+ sets of Skins/Containers.
* Demo Site:http://dotnetnuke.novasoftware.com/
 
New Post
1/10/2013 12:37 AM
 

Thank you, that solved it!

Tom

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCreating an upgrade packageCreating an upgrade package


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