XPressME Integration Kit

Trac


Ignore:
Timestamp:
Nov 19, 2013, 9:47:43 PM (10 years ago)
Author:
toemon
Message:

MySQL5.5 TYPE=MyISAM エラー バグ修正 fix #429

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/onupdate.php

    r835 r852  
    2323        $db =& XoopsDatabaseFactory::getDatabaseConnection() ; 
    2424        $mid = $module->getVar('mid') ; 
    25          
     25 
    2626 
    2727 
     
    3939        } 
    4040 
    41 //Site_url and home of an optional table are repaired.  
     41//Site_url and home of an optional table are repaired. 
    4242        $site_url= XOOPS_URL."/modules/".$mydirname; 
    4343        xpress_put_siteurl($mydirname,$site_url); 
     
    6161        $t_mess = xpress_clean_templates_file($mydirname,$mod_version); 
    6262        $msgs = array_merge($msgs,$t_mess); 
    63          
     63 
    6464        $t_mess = xpress_templates_make($mid,$mydirname); 
    6565        $msgs = array_merge($msgs,$t_mess); 
    6666 
    67 // The activation processing of the XPressME plugin is omitted.  
     67// The activation processing of the XPressME plugin is omitted. 
    6868// Because the XPressME plugin is done with wp-config in activation 
    6969 
     
    7373//              $msgs[] = 'The xpressme plug-in was activated.'; 
    7474//      } 
    75          
     75 
    7676        return true ; 
    7777} 
     
    110110 
    111111                $sql = "SELECT option_value FROM $option_table WHERE option_name = '" . $option_name . "'"; 
    112                  
     112 
    113113                $result =  $xoopsDB->query($sql, 0, 0); 
    114114                if ($xoopsDB->getRowsNum($result)  > 0){ 
     
    163163        } 
    164164 
    165         switch ( $xoops_block_check->get_op() )  
     165        switch ( $xoops_block_check->get_op() ) 
    166166        { 
    167167                case "remove_block": 
     
    194194                post_views bigint(20) unsigned NOT NULL default '0', 
    195195                KEY post_id (post_id) 
    196                 ) TYPE=MyISAM"; 
     196                ) ENGINE=MyISAM"; 
    197197                $db->queryF( $queries ) ; 
    198198                $msgs[] = "$views_table table of XPressME was made."; 
     
    203203                        $msgs[] = "$views_table  ADD blog_id ."; 
    204204                } 
    205                  
     205 
    206206                // The table is repaired. 
    207207                $non_blogid_sql ="SELECT * FROM $views_table WHERE blog_id IS NULL OR blog_id < 1"; 
     
    222222                } 
    223223        } 
    224          
     224 
    225225        $d3forum_link = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_d3forum_link' ; 
    226226        if (! enhanced_table_check($mydirname,'d3forum_link')){ 
     
    232232                        blog_id bigint(20) unsigned NOT NULL default '0', 
    233233                        KEY post_id (post_id) 
    234                         )TYPE=MyISAM"; 
     234                        )ENGINE=MyISAM"; 
    235235                $db->queryF( $queries ) ; 
    236236                $msgs[] = "$d3forum_link table of XPressME was made."; 
     
    265265                        login_all smallint(5) unsigned NOT NULL default '0' , 
    266266                        KEY groupid (groupid) 
    267                         )TYPE=MyISAM"; 
     267                        )ENGINE=MyISAM"; 
    268268                $db->queryF( $queries ) ; 
    269269                $sql = "INSERT INTO $group_role (groupid, role) VALUES (1, 'administrator')"; 
     
    280280                $db->queryF( $update_sql ) ; 
    281281        } 
    282          
     282 
    283283        if (! enhanced_table_check($mydirname,'notify_reserve')){ 
    284284                $notify_reserve = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_notify_reserve' ; 
     
    294294                        omit_user_id varchar(20) NOT NULL default '' , 
    295295                        KEY notify_reserve_id (notify_reserve_id) 
    296                         )TYPE=MyISAM"; 
     296                        )ENGINE=MyISAM"; 
    297297                $db->queryF( $queries ) ; 
    298298                $msgs[] = "$notify_reserve table of XPressME was made."; 
     
    305305function enhanced_table_check($mydirname,$table_name){ 
    306306                global $xoopsModule; 
    307                  
     307 
    308308                $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); 
    309309                $xpress_prefix = $xoopsDB->prefix(preg_replace('/wordpress/','wp',$mydirname) . '_'); 
Note: See TracChangeset for help on using the changeset viewer.