Changes between Version 7 and Version 9 of Ticket #2181


Ignore:
Timestamp:
2013/07/20 17:16:41 (11 years ago)
Author:
adachi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2181

    • Property Milestone changed from EC-CUBE2.13.0 to EC-CUBE2.13 開発合宿
  • Ticket #2181 – Description

    v7 v9  
    3636* インストール処理のフロー 
    3737SC_Plugin_Installer::execPlugin() 
    38  - SQLの検証 
    39  -- SQLエラーがある場合はreturn; 
     38 - SQLの構文チェック 
     39 - SQLエラーがある場合はreturn; 
    4040 - SQLの実行 
    4141 - INSERT実行 
     
    5252  SQLを実行 
    5353 
    54 - sqlInsert($table, $entity); 
     54- insert($table, $entity); 
    5555  INSERT 
    5656 
    57 - sqlUpdate($table, $entity, $where, $params) 
     57- update($table, $entity, $where, $params) 
    5858  UPDATE 
    5959 
    60 - sqlAterTableAddColumn($table_name, $col_name, $col_type) 
     60- addColumn($table_name, $col_name, $col_type) 
    6161  カラム追加 
    6262 
    63 - sqlAterTableDropColumn($table_name, $col_name) 
     63- dropColumn($table_name, $col_name) 
    6464  カラム削除 
    6565 
     
    7373install($arrPlugin, $objPluginInstaller) { 
    7474    // カラム追加 
    75     $objPluginInstaller->sqlAterTableAddColumn("dtb_products" ,"plg_plugin_code_hoge",  "text"); 
     75    $objPluginInstaller->addColumn("dtb_products" ,"plg_plugin_code_hoge",  "text"); 
    7676 
    7777    // テーブル追加 
     
    9191    $sqlval = array(); 
    9292    $sqlval['dummy'] = "test"; 
    93     $objPluginInstaller->sqlInsert('plg_plugin_code_hogehugatable ', $sqlval); 
     93    $objPluginInstaller->insert('plg_plugin_code_hogehugatable ', $sqlval); 
    9494 
    9595} 
     
    9797uninstall($arrPlugin, $objPluginInstaller) { 
    9898    // カラム削除 
    99     $objPluginInstaller->sqlAterTableDropColumn("dtb_products", "plg_plugin_code"); 
     99    $objPluginInstaller->dropColumn("dtb_products", "plg_plugin_code"); 
    100100 
    101101    // テーブル削除