source: extensions/DownloadFromThumbnail/maintain.class.php @ 31377

Last change on this file since 31377 was 31377, checked in by ddtddt, 8 years ago

[extensions] - rename project

File size: 772 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4class DownloadFromThumbnail_maintain extends PluginMaintain
5{
6  private $installed = false;
7
8  function __construct($plugin_id){
9    parent::__construct($plugin_id);
10  }
11
12  function install($plugin_version, &$errors=array()){
13  }
14
15  function activate($plugin_version, &$errors=array()){
16        $image_type = implode(",", get_enums(HISTORY_TABLE, 'image_type')).",dft_download";
17        $query = "ALTER TABLE ". HISTORY_TABLE ." CHANGE `image_type` `image_type` ENUM( '".$image_type."' ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL";
18        $result = pwg_query($query);
19  }
20
21  function update($old_version, $new_version, &$errors=array()){
22  }
23 
24  function deactivate(){
25  }
26
27  function uninstall(){
28  }
29}
30?>
Note: See TracBrowser for help on using the repository browser.