Switch stataData to an untyped column so that Depot can do the right thing with
it. BLOB on MySQL has a maximum length of 65535, so we'll preserve those semantics even though Depot will now use VARBINARY on MySQL for columns of length 65535 and lower. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@398 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -66,11 +66,8 @@ public class StatRecord extends PersistentRecord
|
|||||||
@Column(name="STAT_CODE")
|
@Column(name="STAT_CODE")
|
||||||
public int statCode;
|
public int statCode;
|
||||||
|
|
||||||
/**
|
/** The data associated with the stat. */
|
||||||
* The data associated with the stat. TODO: BLOB will break on PostgreSQL, which in turn
|
@Column(name="STAT_DATA", length=65535)
|
||||||
* 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;
|
public byte[] statData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user