[Easymod-cvs] easymod2/mods/easymod/em_includes em_schema.php,1.3,1.4
Status: Beta
Brought to you by:
wgeric
From: Brendan K. <bk...@us...> - 2005-05-20 23:29:00
|
Update of /cvsroot/easymod/easymod2/mods/easymod/em_includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27814/easymod/em_includes Modified Files: em_schema.php Log Message: Fixing auto increment and default conflict with the SQL Index: em_schema.php =================================================================== RCS file: /cvsroot/easymod/easymod2/mods/easymod/em_includes/em_schema.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** em_schema.php 1 May 2005 12:23:18 -0000 1.3 --- em_schema.php 20 May 2005 23:28:51 -0000 1.4 *************** *** 700,703 **** --- 700,707 ---- { $len = ($params['length'] == '') ? '' : ('(' . $params['length'] . ')') ; + if( $params['increment'] != '' ) + { + $params['default'] = $params['def_val'] = ''; + } $mysql_line = $params['name'] . ' ' . $params['type'] . $len . ' ' . $params['signed'] . ' ' . $params['null'] . ' ' . $params['default'] . ' ' . $params['def_val'] . ' ' . $params['increment'] ; switch ( DB_TYPE ) |