From 3f7c1f9466e44927f4099ac15f5020077096a44e Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Fri, 27 Jul 2007 21:12:29 +0000 Subject: [PATCH] The old schema had STAT_DATA be a BLOB, and Depot currently defaults to varbinary(255). This raises at least two questions; first, does it make sense to assume that in the absence of any other markup, 255 is a reasonable size limit? I am not at all sure. Second, whatever the default translation of byte[] ends of being, how to we deal dialect-agnostically with schema compatibility issues? git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@390 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/stats/server/persist/StatRecord.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/stats/server/persist/StatRecord.java b/src/java/com/threerings/stats/server/persist/StatRecord.java index 38cf997a..972426ec 100644 --- a/src/java/com/threerings/stats/server/persist/StatRecord.java +++ b/src/java/com/threerings/stats/server/persist/StatRecord.java @@ -66,8 +66,11 @@ public class StatRecord extends PersistentRecord @Column(name="STAT_CODE") public int statCode; - /** The data associated with the stat. */ - @Column(name="STAT_DATA") + /** + * The data associated with the stat. TODO: BLOB will break on PostgreSQL, which in turn + * will serve as an excellent TODO reminder that we need to figure out how to deal properly. + */ + @Column(name="STAT_DATA", type="BLOB") public byte[] statData; /**