示例#1
0
 public boolean downgrade(JSONObject state, StateStore stateStore, Migrator migrator)
     throws JSONException {
   return migrator.removeProperty(state, "customBar");
 }
示例#2
0
    public boolean upgrade(JSONObject state, StateStore stateStore, Migrator migrator)
        throws JSONException {
      JSONObject properties = (JSONObject) state.get(MapEntityStore.JSONKeys.properties.name());

      return migrator.addProperty(state, "customBar", "Hello " + properties.getString("bar"));
    }