Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6898281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:16:34+00:00 2026-05-27T07:16:34+00:00

Currently I’m working on a website for a client, who deals in software plugins.

  • 0

Currently I’m working on a website for a client, who deals in software plugins. The client needs to be able to upload Products, and for these products different Versions, Updates and Patches. For example: veProduct v1.1.4 is Version 1, Update 1 and Patch 4 of the Product veProduct. Customers need to be able to buy a License to a Version. The License is a file that’s generated per user, wich needs to be available for download. Currently I’m designing the database for the website, and I stumbled into a problem. How should I handle the different patches & versions?

My current Design:

In this design I created a table Product, which contains the information of the product itself, like the name and the description. Of the Product there can be multiple versions, which require different licenses, so I created another table called Version. In this table there will be a download-link, a changelog and the pricing of this version of the product. Also a discount price for customers who own the license of an older version, but that’s not important. After this I created the User table, so that I could link the user and the version in the table License. In this table you can also find the download link to the license file.

After this, my trouble starts. I created the table Update, which is for example v2.3. This means it’s version_id is 2 and it’s update_id is 3. Then I created the table Patch, which could be for example v2.3.1, where version_id is 2, update_id is 3 and patch_id is 1. Until now there’s no problem, but there’s one big flaw in this design. That’s when I want to upload a patch for a version that has no updates yet, like v1.0.1. That means I have to create a record in the table update, with the update_id 0 and no download link or changelog. I don’t want to create a record without any purpose but to be a patches ‘parent’.

[deleted]

Fixing my problem:

I find it hard to think of a solution, so I ask your help.

Would it be a good idea to get rid of the download-link fields in the version and update table and rely on the ones in the patch table? This way I would always make another patch, even if I only upload a newer version, or if I upload a completely new product. It just feels wrong to have the update table, only for being a patches parent.

So, can anyone help me figure this one out? How should I store new products, versions, updates and patches in my database. Where should I store my download-links? And last, but not least, how can I keep my version linked to the customer, and to the download-link for the license? (So every user gets his own license per version of a product, not per product, update or patch)

Sincerly,

Scuba Kay

PS: It really sucks not being able to post pictures if you’re a new user, ’cause I’d like to post a screenshot of my MySQL Workbench instead of a bulk of code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:16:34+00:00Added an answer on May 27, 2026 at 7:16 am

    Instead of Update and Patch, why not just have a Release table that looks like this:

    release_id, 
    version_id, --foreign key 
    type, -- this is either UPDATE or PATCH
    release_name, -- this is the full ver number 1.0.1, for instances
    changelog,
    download_link
    

    This would allow you to keep version so you can associate that with customer for licensing purposes but would let you be flexible about what you create first (updates or patches) without having to insert dummy rows.

    BTW: In this model, I’d remove the download link from Version so it only exists at the release level (essentially release 1.0.0).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently i'm having trouble using two functions in my -(void)viewDidLoad , both of these
Currently I have a web service, which loads up any plugins located within its
Currently, I am modifying a css document to make a website compatible in IE
Currently I have alot of information that are in several different divs. I want
Currently, working with RC0 Denali, having some issues I am attempting to review data
Currently working on database part of android project. The main aim of the project
Currently local storage for javascript is limited to cookies, which makes robust client side
Currently, working with Denali RC0 and unable to add BI Time Intelligence to the
Currently i m working on a project where there are users with four roles
Currently I am working on getting system information via a Silverlight Embedded Application tied

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.