source: extensions/DownloadSinceThumbnail/maintain.class.php @ 31376

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

[extensions] - DownloadSinceThumbnail - first commit

File size: 708 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4class DownloadSinceThumbnail_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        $query = "ALTER TABLE ". HISTORY_TABLE ." CHANGE `image_type` `image_type` ENUM( 'picture', 'high', 'other', 'download' ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL";
17        $result = pwg_query($query);
18  }
19
20  function update($old_version, $new_version, &$errors=array()){
21  }
22 
23  function deactivate(){
24  }
25
26  function uninstall(){
27  }
28}
29?>
Note: See TracBrowser for help on using the repository browser.