path: root/db
diff options
authorMikael Nordfeldth <mmn@hethane.se>2013-10-06 13:40:53 +0200
committerMikael Nordfeldth <mmn@hethane.se>2013-10-06 14:07:00 +0200
commitc3d46b81a8f6abec7e00b4f3714e67d2dbcad247 (patch)
tree2ea501414ec91bdd18f3e53a26651e152f1987d0 /db
parent78f9629bf3553a709c99e13f480bd225083e5ca5 (diff)
Added Profile_prefs class for profile preferences
Profile_prefs aims to consolidate all the profile preferences into a single table. Otherwise we end up with a bajillion *_prefs classes, like User_urlshortener_prefs, or new fields in existing User/Profile classes, like 'urlshorteningservice', 'homepage', 'phone_number', 'pet_name' etc. Eventually we should migrate as many user-settable preferences as we can into this system. The data in Profile_prefs is organized by: * profile_id Identify the current Profile. * namespace Which plugin/section the preference is for. * topic Preference name (like 'homepage') * data Preference data (like 'https://gnu.org/') The names 'topic' and 'data' are because 'key' and 'value' may be rather ambigous when dealing with our DB_DataObject classes etc.
Diffstat (limited to 'db')
1 files changed, 1 insertions, 0 deletions
diff --git a/db/core.php b/db/core.php
index d132b56779..da2f5fde5f 100644
--- a/db/core.php
+++ b/db/core.php
@@ -59,6 +59,7 @@ $classes = array('Schema_version',
// 'Notice_inbox',
+ 'Profile_prefs',