From 3b06f339f9878a81fdbfcd62290f2faadffdb3b0 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Thu, 29 Oct 2009 15:34:12 +0000 Subject: [PATCH] This seems to be the only existing use of @Column(type=...) which is a loathsome piece of functionality that I'd like to rip out of Depot. I am not sure why we fixed on TIMESTAMP originally; only in MySQL would it make a difference at all, and I believe only Whirled uses this class? git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@883 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../threerings/parlor/rating/server/persist/RatingRecord.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/java/com/threerings/parlor/rating/server/persist/RatingRecord.java b/src/java/com/threerings/parlor/rating/server/persist/RatingRecord.java index 9e2f1787..74f1e065 100644 --- a/src/java/com/threerings/parlor/rating/server/persist/RatingRecord.java +++ b/src/java/com/threerings/parlor/rating/server/persist/RatingRecord.java @@ -27,7 +27,6 @@ import com.samskivert.util.StringUtil; import com.samskivert.depot.Key; import com.samskivert.depot.PersistentRecord; -import com.samskivert.depot.annotation.Column; import com.samskivert.depot.annotation.Entity; import com.samskivert.depot.annotation.Id; import com.samskivert.depot.annotation.Index; @@ -45,7 +44,7 @@ public class RatingRecord extends PersistentRecord public static final ColumnExp LAST_UPDATED = colexp(_R, "lastUpdated"); // AUTO-GENERATED: FIELDS END - public static final int SCHEMA_VERSION = 3; + public static final int SCHEMA_VERSION = 4; /** The identifier of the game we're rating for. */ @Id public int gameId; @@ -60,7 +59,6 @@ public class RatingRecord extends PersistentRecord public int experience; /** The last time this rating was updated. */ - @Column(type="TIMESTAMP", defaultValue="CURRENT_TIMESTAMP") public Timestamp lastUpdated; /**