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

  • Home
  • SEARCH
  • 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 244719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:01:41+00:00 2026-05-11T21:01:41+00:00

I want to do a simple versioning system but i don’t have ideas on

  • 0

I want to do a simple versioning system but i don’t have ideas on how to structure my datas, and my code.

Here is a short example:

  1. User logs in
  2. User has two options when uploading a file:
    • Submit a new file
    • Submit a new version of a file

Users should be able to see the tree. (the different version)
The tree can only be up to 2 levels:

|
|--File_A_0
 \--File_A_1
 \--File_A_2
 \--File_A_3
 \--File_A_4

There are also 2 types of file, a final (which is the latest approved version) and a draft version (which the latest uploaded file)
The file will be physically stored on the server.
Each files are owned by a user (or more) and only one group.

Edit: Groups represent a group of document, document could only be owned by ONE group at once. Users do NOT depend on groups.

Begin edit:

Here is what i did, but it is not really efficient !

id_article | relative_group_id | id_group | title | submited | date | abstract | reference | draft_version | count | status

id_draft | id_file | version | date

But it’s difficult to manage, to extend.
I think it’s because the group paramater…

End edit

So the questions are:

  • How can i schematize my database ?
  • What kind of infos should be usefull
    to version this work ?
  • What kind of structure for the
    folders, files ?
  • What kind of tips, hints do you have
    to do this kind of work ?

(The application is developped with PHP and Zend Framework, database should be mysql or postgresql)

  • 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-11T21:01:42+00:00Added an answer on May 11, 2026 at 9:01 pm

    For God’s sake, don’t. You really don’t want to go down this road.

    Stop and think about the bigger picture for a moment. You want to keep earlier versions of documents, which means that at some point, somebody is going to want to see some of those earlier versions, right? And then they are going to ask, “What’s the difference between version 3 and version 7”? And then they are going to say, “I want to roll back to version 3, but keep some of the changes that I put in version 5, ummm, ok?”

    Version control is non-trivial, and there’s no need to reinvent the wheel– there are lots of viable version control systems out there, some of them free, even.

    In the long run, it will be much easier to learn the API of one of these systems, and code a web front-end that offers your users the subset of features they are looking for (now.)

    You wouldn’t code a text editor for your users, would you?

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

Sidebar

Ask A Question

Stats

  • Questions 127k
  • Answers 127k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The workaround you're using requires sharing your secret key with… May 12, 2026 at 5:34 am
  • Editorial Team
    Editorial Team added an answer id object = [[NSClassFromString(@"NameofClass") alloc] init]; May 12, 2026 at 5:34 am
  • Editorial Team
    Editorial Team added an answer In Python >=3.0, like this: class Foo(): def __init__(self, frob,… May 12, 2026 at 5:34 am

Related Questions

I want to do a simple versioning system but i don't have ideas on
I’m thinking through some database design concepts and believe that creating sample data simulating
The company I work for writes a lot smallish Perl and Bash scripts to
Where I work I have several projects in separate repositories. Each project shares a
I want to do a simple role authentication in .NET - but am lost

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.