mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-05 06:00:29 -04:00
Set up database version v3 and its migration from v2
+ Check versions to choose v1->v2 or v2->v3
This commit is contained in:
parent
41aa75d8fe
commit
0333ba7fe7
2 changed files with 80 additions and 3 deletions
5
init.lua
5
init.lua
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue