database icon indicating copy to clipboard operation
database copied to clipboard

Basic versioning

Open avivace opened this issue 4 years ago • 1 comments

avivace avatar Aug 27 '21 19:08 avivace

While cleaning, I think the safest and less intrusive we have to do this is to implement the "field" version, for each file. It should be a string, so we can include points and characters like a,b... for alpha,beta... versions Additionally, same software in different folders can be merged into just one folder, and we would just need to add the missing information to the game.json

To understand what I mean here it is an example.

What's up right now:

{
    "default": true,
    "filename": "infinity.gb",
    "hash": {
        "md5": "6d6507bd38c76a9baa90b8e305ebea13",
        "sha1": "fdfd6d4cbebbf64fc7d1264f0450be270be89823",
        "sha256": "a5c7b34dbc1a6be0c2ec7ff5943f0e2bef24de9e9624d06604e7d60971a94330"
    },
    "playable": true
}

Proposal of change:

{
    "default": true,
    "filename": "infinity.gb",
    "version": "1.0.0",
    "hash": {
        "md5": "6d6507bd38c76a9baa90b8e305ebea13",
        "sha1": "fdfd6d4cbebbf64fc7d1264f0450be270be89823",
        "sha256": "a5c7b34dbc1a6be0c2ec7ff5943f0e2bef24de9e9624d06604e7d60971a94330"
    },
    "playable": true
}

dag7dev avatar May 02 '22 11:05 dag7dev