Changes between Version 4 and Version 5 of Ticket #2181


Ignore:
Timestamp:
2013/03/10 11:53:50 (11 years ago)
Author:
h_yoshimoto
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2181 – Description

    v4 v5  
    7373install($arrPlugin, $objPluginInstaller) { 
    7474    // カラム追加 
    75     $objPluginInstaller->sql("alter table dtb_products add column plg_plugin_code_hoge text"); 
     75    $objPluginInstaller->sqlAterTableAddColumn("dtb_products" ,"plg_plugin_code_hoge",  "text"); 
    7676 
    7777    // テーブル追加 
     
    8686    // data/downloads/plugin/plugin_code/js/以下をhtml/plugin/plugin_code/js/へコピー 
    8787    $objPluginInstaller->copyDirectory("js", "js"); 
     88 
     89    // INSERT処理 
     90    $sqlval = array(); 
     91    $sqlval['dummy'] = "test"; 
     92    $objPluginInstaller->sqlInsert('plg_plugin_code_hogehugatable ', $sqlval); 
     93 
    8894} 
    8995 
    9096uninstall($arrPlugin, $objPluginInstaller) { 
    91     // カラム追加 
    92     $objPluginInstaller->sql("alter table dtb_products drop column plg_plugin_code_hoge"); 
     97    // カラム削除 
     98    $objPluginInstaller->sqlAterTableDropColumn("dtb_products", "plg_plugin_code"); 
    9399 
    94100    // テーブル削除