whats the recommended method for upgrading the userstore object?
Meaning - lets say in my app, i want to deprecate a field in the userstore object in the newer version of the app. What do I do?
seems like if I were to just release the new app with a new userstore format, the app settings goes crazy.
lets say this is the original one
enum
{
ENUM1
ENUM2
ENUM3
}
and this is the new version where I removed ENUM2 and added another 2
enum
{
ENUM1
ENUM3
ENUM10
ENUM11
}
for some reason, Maybe it's my issue, due to this arrangement change, the app.getproperty() call doesn't reference to the correct location.
function getDSValues(field) {
var output = app.getProperty(field);
if ( field == ENUM1 ) {
if ( output == null || output == 0) { output = 1000; }
return output;
} else if (field == ENUM2) {
if ( output == null ) { output = 1; }
return output;
}
Am i doing the get property incorrectly?