History uuid should be a string, for uniqueness sake

pull/14/head
Sam Bosley 12 years ago
parent 73a2b5ac4f
commit e598320683

@ -28,7 +28,7 @@ public class History extends AbstractModel {
TABLE, ID_PROPERTY_NAME); TABLE, ID_PROPERTY_NAME);
/** Remote ID */ /** Remote ID */
public static final LongProperty UUID = new LongProperty( public static final StringProperty UUID = new StringProperty(
TABLE, RemoteModel.UUID_PROPERTY_NAME); TABLE, RemoteModel.UUID_PROPERTY_NAME);
/** Created at */ /** Created at */

@ -81,7 +81,7 @@ public class FetchHistory {
History history = new History(); History history = new History();
history.setValue(History.TABLE_ID, table); history.setValue(History.TABLE_ID, table);
history.setValue(History.TARGET_ID, uuid); history.setValue(History.TARGET_ID, uuid);
history.setValue(History.UUID, historyJson.optLong("id")); history.setValue(History.UUID, historyJson.optString("id"));
history.setValue(History.USER_UUID, historyJson.optString("user_id")); history.setValue(History.USER_UUID, historyJson.optString("user_id"));
history.setValue(History.COLUMN, historyJson.optString("column")); history.setValue(History.COLUMN, historyJson.optString("column"));
history.setValue(History.OLD_VALUE, historyJson.optString("prev")); history.setValue(History.OLD_VALUE, historyJson.optString("prev"));

Loading…
Cancel
Save