[bbDev] [1545] trunk/bb-settings.php: Proposal to allow customisation of all db tables.

Sam Bauers sam at automattic.com
Thu May 22 05:23:13 GMT 2008


On 22/05/2008, at 3:20 PM, Sam Bauers wrote:
>
> When user tables are in a different database...
>
> 	$bb->custom_databases = array(
> 		'user' => array(
> 			'name' => 'wordpress',
> 			'user' => 'wordpress_user',
> 			'password' => 'verysecurepassword',
> 			'host' => 'localhost',
> 			'charset' => 'utf8',
> 			'collate' => 'utf8_general_ci'
> 		)
> 	);
> 	$bb->custom_tables = array(
> 		'usermeta' => array('user', 'wp_usermeta'),
> 		'users' => array('user', 'wp_users'),
> 	);


I got this wrong, the second array should be:

	$bb->custom_tables = array(
		'users'    => array(
			'database' => 'user',
			'table'    => 'wp_users'
		),
		'usermeta' => array(
			'database' => 'user',
			'table'    => 'wp_usermeta'
		)
	);


---------------------
Sam Bauers
Automattic, Inc.

sam at automattic.com
http://automattic.com
http://wordpress.com
http://wordpress.org
http://bbpress.org
http://unlettered.org
---------------------



More information about the bbDev mailing list