From 062910e708427a5d3187c8fe897771748f0b9b30 Mon Sep 17 00:00:00 2001 From: Peter Eliasson Date: Fri, 5 Aug 2016 20:06:11 +0200 Subject: [PATCH] Default for db version now most recent If doing a clean install, one will get the latest db structure, meaning the version of the database should be the most recent. --- src/main.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.lua b/src/main.lua index 6900213..e7e5dd4 100644 --- a/src/main.lua +++ b/src/main.lua @@ -29,19 +29,19 @@ addon.versionName = '0.0.0-debug'; local modPrototype = { Debug = function(self, ...) addon:Debug(...) end } addon:SetDefaultModulePrototype(modPrototype) +-- The current db version. Migrate the database if +-- version of database doesn't match this version. +addon.dbVersion = 11; + -- Db default settings addon.dbDefaults = { realm = { modules = {}, options = {}, - dbVersion = 1 + dbVersion = addon.dbVersion }, } --- The current db version. Migrate the database if --- version of database doesn't match this version. -addon.dbVersion = 11; - -- Constants DEBUG_PRINT = false; --@debug@ -- 1.7.9.5