XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 21, 2009, 12:51:44 PM (15 years ago)
Author:
toemon
Message:

#111 XPressMEモジュールをアンインストールしても、プラグインが作成したデータベーステーブルが残ってしまうバグ修正
xoops_version.php から $modversiontables?の記述を外し
onuninstall でdb_prefixからテーブルを見つけてDROPするようにした。
またxoops_version.php から $modversiontables?の記述を外したことにより、wordpressのテーブル構成が変わっても気にしないですむようになった。
但しXOOPSのモジュールインフォメーションにはSQLテーブルの情報がでない

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xoops_version.php

    r186 r188  
    4040 
    4141// status 
    42 $modversion['codename'] = "Bata3(r186)"; 
     42$modversion['codename'] = "Bata3(r188)"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
     
    5555} 
    5656 
    57 $modversion['tables'] = array( 
    58         $db_prefix . "_comments", 
    59         $db_prefix . "_links", 
    60         $db_prefix . "_options", 
    61         $db_prefix . "_postmeta", 
    62         $db_prefix . "_posts", 
    63         $db_prefix . "_users", 
    64         $db_prefix . "_usermeta", 
    65         $db_prefix . "_terms", 
    66         $db_prefix . "_term_relationships", 
    67         $db_prefix . "_term_taxonomy", 
    68         $db_prefix . "_views",   
    69         $db_prefix . "_d3forum_link", 
    70         $db_prefix . "_group_role" 
    71 ); 
     57/* 
     58 * Table information is not described.  
     59 *  
     60 * The create of the table is do with oninstall.php.  
     61 * The drop of the table is do with onuninstall.php.  
     62 * 
     63 * $modversion['tables'] = array( ,,,); 
     64 */ 
    7265 
    7366 
Note: See TracChangeset for help on using the changeset viewer.