cvs: pear /LiveUser/sql install.php

From: Date: Tue, 19 Apr 2005 14:09:09 +0000
Subject: cvs: pear /LiveUser/sql install.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31305@lists.php.net to get a copy of this message
lsmith Tue Apr 19 10:09:09 2005 EDT Modified files: /pear/LiveUser/sql install.php Log: - aded notnull for required fields - added unique index http://cvs.php.net/diff.php/pear/LiveUser/sql/install.php?r1=1.10&r2=1.11&ty=u Index: pear/LiveUser/sql/install.php diff -u pear/LiveUser/sql/install.php:1.10 pear/LiveUser/sql/install.php:1.11 --- pear/LiveUser/sql/install.php:1.10 Tue Apr 19 09:52:20 2005 +++ pear/LiveUser/sql/install.php Tue Apr 19 10:09:04 2005 @@ -35,7 +35,7 @@ * @author Lukas Smith <smith@backendmedia.com> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: install.php,v 1.10 2005/04/19 13:52:20 lsmith Exp $ + * @version CVS: $Id: install.php,v 1.11 2005/04/19 14:09:04 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -121,6 +121,7 @@ if ($value['type'] == 'text') { $fields[$value['name']]['length'] = 32; } + $fields[$value['name']]['notnull'] = 1; } } @@ -151,7 +152,15 @@ 'create' => '<variable>create</variable>', 'tables' => array( $auth->authTable => array( - 'fields' => $fields + 'fields' => $fields, + 'indexes' => array( + $auth->authTableCols['required']['auth_user_id']['name'] => array( + 'fields' => array( + $auth->authTableCols['required']['auth_user_id']['name'] => true, + ), + 'unique' => true, + ), + ), ), ), 'sequences' => array(

« previous php.pear.cvs (#31305) next »