Hi All,
Another newbie question. I have created some levels for my game and stored them in a sqlite database. I would like to ensure that these survive an app update, as I store the level status (locked, unlocked) and highscores in the database.
local dbPath = system.pathForFile("levelScores.db3", system.DocumentsDirectory) local db = sqlite3.open( dbPath ) local tablesetup = [[CREATE TABLE IF NOT EXISTS worlds (id, image, status, highscore, name); INSERT INTO worlds VALUES (1, 'hardscape\_c.jpg', 'unlocked', '0', "Unknown I"); INSERT INTO worlds VALUES (2, 'fissure\_c.jpg', 'locked', '0', "Nova II");]] db:exec( tablesetup ) --Create it now. db:close() --Then close the database
Will the database be wiped off if the user updates the app?