Set up database version v3 and its migration from v2

+ Check versions to choose v1->v2 or v2->v3
This commit is contained in:
Athozus 2023-03-08 19:03:27 +01:00
parent 41aa75d8fe
commit 0333ba7fe7
No known key found for this signature in database
GPG key ID: B50895022E8484BF
2 changed files with 80 additions and 3 deletions

View file

@ -2,6 +2,9 @@ mail = {
-- api version
apiversion = 1.1,
-- database version
dbversion = 3.0,
-- mail directory
maildir = minetest.get_worldpath().."/mails",
contactsdir = minetest.get_worldpath().."/mails/contacts"
@ -23,4 +26,4 @@ mail.migrate()
if minetest.get_modpath("mtt") then
dofile(MP .. "/mtt.lua")
end
end