Changes between Version 4 and Version 5 of Ticket #2181
- Timestamp:
- 2013/03/10 11:53:50 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2181 – Description
v4 v5 73 73 install($arrPlugin, $objPluginInstaller) { 74 74 // カラム追加 75 $objPluginInstaller->sql ("alter table dtb_products add column plg_plugin_code_hogetext");75 $objPluginInstaller->sqlAterTableAddColumn("dtb_products" ,"plg_plugin_code_hoge", "text"); 76 76 77 77 // テーブル追加 … … 86 86 // data/downloads/plugin/plugin_code/js/以下をhtml/plugin/plugin_code/js/へコピー 87 87 $objPluginInstaller->copyDirectory("js", "js"); 88 89 // INSERT処理 90 $sqlval = array(); 91 $sqlval['dummy'] = "test"; 92 $objPluginInstaller->sqlInsert('plg_plugin_code_hogehugatable ', $sqlval); 93 88 94 } 89 95 90 96 uninstall($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"); 93 99 94 100 // テーブル削除