diff --git a/src/java/com/threerings/parlor/rating/server/persist/PercentileRecord.java b/src/java/com/threerings/parlor/rating/server/persist/PercentileRecord.java index 9cba0cf9..12984d82 100644 --- a/src/java/com/threerings/parlor/rating/server/persist/PercentileRecord.java +++ b/src/java/com/threerings/parlor/rating/server/persist/PercentileRecord.java @@ -23,6 +23,7 @@ package com.threerings.parlor.rating.server.persist; import com.samskivert.jdbc.depot.Key; import com.samskivert.jdbc.depot.PersistentRecord; +import com.samskivert.jdbc.depot.annotation.Column; import com.samskivert.jdbc.depot.annotation.Id; import com.samskivert.jdbc.depot.expression.ColumnExp; @@ -57,7 +58,7 @@ public class PercentileRecord extends PersistentRecord // AUTO-GENERATED: FIELDS END /** Increment this value to reflect changes to this object's schema. */ - public static final int SCHEMA_VERSION = 1; + public static final int SCHEMA_VERSION = 2; /** The id of the game for which we're tracking a percentile distribution. */ @Id @@ -68,6 +69,7 @@ public class PercentileRecord extends PersistentRecord public int type; /** The raw percentiler data. */ + @Column(length=500) public byte[] data; // AUTO-GENERATED: METHODS START diff --git a/src/java/com/threerings/parlor/rating/server/persist/RatingRepository.java b/src/java/com/threerings/parlor/rating/server/persist/RatingRepository.java index ae6dbed5..8c3d05b7 100644 --- a/src/java/com/threerings/parlor/rating/server/persist/RatingRepository.java +++ b/src/java/com/threerings/parlor/rating/server/persist/RatingRepository.java @@ -30,6 +30,7 @@ import com.samskivert.util.HashIntMap; import com.samskivert.util.IntMap; import com.samskivert.jdbc.depot.DepotRepository; +import com.samskivert.jdbc.depot.EntityMigration; import com.samskivert.jdbc.depot.PersistenceContext; import com.samskivert.jdbc.depot.PersistentRecord; import com.samskivert.jdbc.depot.clause.Where; @@ -49,6 +50,10 @@ public class RatingRepository extends DepotRepository public RatingRepository (PersistenceContext ctx) { super(ctx); + + // TEMP + ctx.registerMigration(PercentileRecord.class, new EntityMigration.Retype(2, "data")); + // END TEMP } /**