Ignore:
Timestamp:
Feb 28, 2016, 11:49:48 PM (8 years ago)
Author:
ddtddt
Message:

[extensions] - rename project

Location:
extensions/DownloadFromThumbnail
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/DownloadFromThumbnail/maintain.class.php

    r31376 r31377  
    22defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
    33
    4 class DownloadSinceThumbnail_maintain extends PluginMaintain
     4class DownloadFromThumbnail_maintain extends PluginMaintain
    55{
    66  private $installed = false;
     
    1414
    1515  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";
     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";
    1718        $result = pwg_query($query);
    1819  }
Note: See TracChangeset for help on using the changeset viewer.