~blueyed/b2evolution/dev

« back to all changes in this revision

Viewing changes to blogs/install/_functions_evoupgrade.php

  • Committer: Daniel Hahler
  • Date: 2010-10-19 17:48:13 UTC
  • Revision ID: ubuntu-launchpad@thequod.de-20101019174813-9s6bxweoyoe156a8
Add index 'check_for_reload' to speedup Hit logging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
        global $DB;
145
145
        if( db_index_exists($table, $name) )
146
146
        {
147
 
                $DB->query( 'ALTER TABLE '.$table.' DROP INDEX '.$name );
 
147
                $DB->query( "ALTER TABLE `$table` DROP INDEX `$name`" );
148
148
        }
149
 
        $DB->query( 'ALTER TABLE '.$table.' ADD '.$type.' '.$name.' ('.$def.')' );
 
149
        $DB->query( "ALTER TABLE `$table` ADD $type `$name` ($def)" );
150
150
}
151
151
 
152
152
 
2827
2827
         * NOTE: every change that gets done here, should bump {@link $new_db_version} (by 100).
2828
2828
         */
2829
2829
 
 
2830
        db_add_index( 'T_hitlog', 'check_for_reload', 'hit_datetime, hit_remote_addr, hit_uri, hit_agent_type' );
2830
2831
 
2831
2832
 
2832
2833
        /* Wait until we're sure and no longer experimental for that one...