Changeset 356

Show
Ignore:
Timestamp:
05/21/06 20:50:48 (3 years ago)
Author:
sven
Message:

add some missing indices, fix couple of typos...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/lib/db/mysql.php

    r269 r356  
    5656    } 
    5757 
    58     if ($oldversion < 200610601) { 
     58    if ($oldversion < 2006010601) { 
    5959        execute_sql("ALTER TABLE `{$CFG->prefix}file_folders` DROP INDEX `owner` ;",false); 
    6060        execute_sql("ALTER TABLE `{$CFG->prefix}file_folders` ADD INDEX `files_owner` (`files_owner`) ;",false); 
     
    214214        error_reporting(E_ERROR | E_WARNING | E_PARSE); 
    215215     
    216         // Set time limit to 20 minutes 
    217         @set_time_limit (1200); 
     216        // Set time limit to 60 minutes 
     217        @set_time_limit (3600); 
    218218 
    219219        // Publish RSS 
     
    276276        } 
    277277    } 
    278      
     278 
     279    if ($oldversion < 2006052100) { 
     280        // add some missing indexes 
     281        execute_sql("ALTER TABLE `{$CFG->prefix}tags` ADD INDEX `tagliteral` (`tag`(20)) ;",false); 
     282        execute_sql("ALTER TABLE `{$CFG->prefix}tags` ADD INDEX `access` (`access`(20)) ;",false); 
     283    } 
     284 
    279285    return $result;  
    280286} 
  • devel/lib/db/mysql.sql

    r354 r356  
    222222  KEY `owner` (`owner`), 
    223223  KEY `tagtype_ref` (`tagtype`,`ref`), 
    224   FULLTEXT KEY `tag` (`tag`) 
     224  FULLTEXT KEY `tag` (`tag`), 
     225  KEY `tagliteral` (`tag`(20)), 
     226  KEY `access` (`access`(20)) 
    225227) TYPE=MyISAM; 
    226228 
  • devel/lib/setup.php

    r310 r356  
    4848if (! $dbconnected) { 
    4949    // In the name of protocol correctness, monitoring and performance 
    50     // profiling, set the appropriate error headers for machine comsumption 
     50    // profiling, set the appropriate error headers for machine consumption 
    5151    if (isset($_SERVER['SERVER_PROTOCOL'])) {  
    5252        // Avoid it with cron.php. Note that we assume it's HTTP/1.x 
  • devel/lib/templates.php

    r353 r356  
    11021102 
    11031103                    $column2 .= " | <a href=\"".url."_templates/edit.php?id=".$template->ident."\" >". gettext("Edit") ."</a>"; 
    1104                     $column2 .= " | <a href=\"".url."_templates/?action=deletetemplate&amp;delete_template_id=".$template->ident."\"  onClick=\"return confirm('" . gettext("Are you sure you want to permanently remove this template?") . "')\">" . gettext("Delete") . "</a>"; 
     1104                    $column2 .= " | <a href=\"".url."_templates/?action=deletetemplate&amp;delete_template_id=".$template->ident."\"  onclick=\"return confirm('" . gettext("Are you sure you want to permanently remove this template?") . "')\">" . gettext("Delete") . "</a>"; 
    11051105                    $panel .=templates_draw(array( 
    11061106                                                        'context' => 'databox', 
     
    11821182        case "submenu":           
    11831183            return templates_draw(array( 
    1184                                         'submenuitems' => menu_join('&nbsp|&nbsp;', $PAGE->menu_sub), 
     1184                                        'submenuitems' => menu_join('&nbsp;|&nbsp;', $PAGE->menu_sub), 
    11851185                                        'context' => 'submenu' 
    11861186                                        )); 
  • devel/units/rpc/lib/class_folder.php

    r269 r356  
    5656                } 
    5757 
    58                 if ($folder_tags = get_records('tags','ref',$var)) { 
     58                if ($folder_tags = get_records('tags','tagtype','folder','ref',$var)) { 
    5959                    // An aray of Tag objects 
    6060                    foreach ($post_tags as $tag) { 
  • devel/units/rpc/lib/class_post.php

    r269 r356  
    4141                } 
    4242                 
    43                 if ($post_tags = get_records('tags','ref',$post_id)) { 
     43                if ($post_tags = get_records('tags','tagtype','weblog','ref',$post_id)) { 
    4444                    // An aray of Tag objects 
    4545                    foreach ($post_tags as $tag) { 
  • devel/version.php

    r269 r356  
    77// whether upgrades should be performed (see lib/db/*.php) 
    88 
    9    $version = 2006022301;  // YYYYMMDD   = Elgg Date 
     9   $version = 2006052100;  // YYYYMMDD   = Elgg Date 
    1010                           //         X  = Elgg Point release (0,1,2...) 
    1111                           //          Y = Interim incrementer 
    1212 
    13    $release = '0.31';    // Human-friendly version name 
     13   $release = '0.6rc2';    // Human-friendly version name 
    1414 
    1515?>