Re: Liveuser tables
| From: | Lukas Smith | Date: | Mon, 29 Aug 2005 14:06:33 +0000 |
| Subject: | Re: Liveuser tables | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20628@lists.php.net to get a copy of this message | ||
Jeroen Houben wrote:
- No foreign keys seem to have been created in my postgresql DB, is that correct?yes .. unfortunately MDB2_Schema does not yet handle foreign keys.
- In the users table why is authuserid a varchar?because the default type for the auth user id field is "text" you can change this default by passing in a new mapping inside the storage configuration .. ['storage']['fields']['auth_user_id'] = 'integer' then it will be created as an integer instead of a varchar
- Why is the max length of the handle only 32? This can easily become a problem if you use an email address as a handle..this is a limitation of the structure definition. it does not support length, therefore the installer default to length 32. this is a fairly random setting indeed. of course you can overwrite it! there is a third optional array parameter you can pass to generateSchema(). in it you can pass a key value mapping where key is the name of the column and the value the length. for example: array('handle' => 100);
- Maybe it would be better to rename authuserid in the users table to auth_user_id in the perm_users table..this is entirely in your control. you may not have been aware of this, but you actually aliased the "auth_user_id" column in the auth container to "authUserId". look at your configuration array and I am sure you will find out where you do this :-) you can do the same kind of stuff in the perm container configuration. so you can decide the name of any column and table in your storage layer. note however that liveuser will always return data using the original non aliased name. regards, Lukas