mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-09 22:31:03 +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:
parent
1f2cf78c1b
commit
9b8eaa5fd5
1 changed files with 4 additions and 0 deletions
|
@ -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
|
Phabricator uses UTF-8 encoding for storing all text data. We use
|
||||||
`utf8_general_ci` collation for free-text and `utf8_bin` for identifiers.
|
`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 =
|
= JSON =
|
||||||
|
|
||||||
Some data don't require structured access - you don't need to filter or order by
|
Some data don't require structured access - you don't need to filter or order by
|
||||||
|
|
Loading…
Reference in a new issue