1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-09 14:21:02 +01:00

Document enum database type

Test Plan: Read.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin

Differential Revision: https://secure.phabricator.com/D2286
This commit is contained in:
vrana 2012-04-19 15:13:52 -07:00
parent 1f2cf78c1b
commit 9b8eaa5fd5

View file

@ -63,6 +63,10 @@ of it. The other reason is that PHP internally uses numbers for storing dates.
Phabricator uses UTF-8 encoding for storing all text data. We use
`utf8_general_ci` collation for free-text and `utf8_bin` for identifiers.
We don't use the `enum` data type because each change to the list of possible
values requires altering the table (which is slow with big tables). We use
numbers (or short strings in some cases) mapped to PHP constants instead.
= JSON =
Some data don't require structured access - you don't need to filter or order by