aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Reputation/ReputationMgr.cpp
diff options
context:
space:
mode:
authorleak <leakzx@googlemail.com>2011-01-19 02:53:44 +0100
committerleak <leakzx@googlemail.com>2011-01-19 02:53:44 +0100
commitb8210f4396cd266137ad69ea0ae4efe715072926 (patch)
tree8f40efad87ad62d8e436ce5ceb805564fd920b3d /src/server/game/Reputation/ReputationMgr.cpp
parent719ffeb414c97e09469bd2af2bf381ea6f7eecec (diff)
SQL: Characters db storage type cleanup #1 - Note:
- MySQL numeric types can NOT be altered in value range or or storage size at all, so things like INT(32) are entirely pointless. As TC currently doesn't use the display width of numeric types, use the default width to avoid confusion. (see MySQL numeric types docs) - Timestamps can be stored as INT(10) UNSIGNED. As the max value of this type is 4294967295 which translates into year 2106 using it as timestamp we are NOT affected by the year 2038 bug. If the timestamp needs to be negative in some cases, i.e. for displaying infinity using -1, use BIGINT(20) instead. - Do NOT set ROW_FORMAT for InnoDB tables unless you specifically want COMPRESSED tables (which we don't for performance reasons). MySQL will chose the appropriate ROW_FORMAT by itself depending on the innodb_file_format setting of the server. (FIXED is only available for MyISAM) - Even though VARCHAR does require less storage space than CHAR for values with variable length, the length still needs to be chosen wisely as this doesn't apply to memory consumption.
Diffstat (limited to 'src/server/game/Reputation/ReputationMgr.cpp')
0 files changed, 0 insertions, 0 deletions