/** * Determine whether the specified field is auto-incrementing. */ public static function is_auto_incrementing($field) { // skip auto-incrementing fields if (DBMan::driver() == 'sqlite' && $field->type == 'integer' && $field->key == 'Primary') { return true; } if (strtolower($field->extra) == 'auto_increment') { return true; } return false; }