I’m preparing to put my first web app on xojo cloud. Since this is a new app, I’m concerned with file structure changes after data has already been entered by users of the app.
Is there a recommended way to handle this process?
I’m preparing to put my first web app on xojo cloud. Since this is a new app, I’m concerned with file structure changes after data has already been entered by users of the app.
Is there a recommended way to handle this process?
Keep in mind that there are places (SharedDocuments for instance) that are not overwritten each time you deploy where your app should be storing runtime data. You will need to build a system for checking if things exist and then adding/upgrading to that as necessary.
From the docs:
For Xojo Cloud, these are the only SpecialFolder methods that are usable. All others return Nil:
The Documents folder should also be persistent, but I would check that first.
I’m using shared documents for the runtime data file so it sounds like I have to build a mechanism to update the file structures in my app. I’ve done this for desktop apps so the same would be true for web apps I assume?
It should be.
In my apps I use a lot of SQLite databases and I always make a table called “prefs” with key and value fields. One pref that I store is the database schema version so when updating,n I check if schema < the current version and if it is, I update the schema and the version.