Ignore:
Timestamp:
Feb 8, 2014, 12:11:14 PM (10 years ago)
Author:
mistic100
Message:

allow to choose the sort order when using limit filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmartAlbums/maintain.inc.php

    r26442 r27266  
    6262  `category_id` smallint(5) unsigned NOT NULL,
    6363  `type` varchar(16) NOT NULL,
    64   `cond` varchar(16) NULL,
     64  `cond` varchar(32) NULL,
    6565  `value` text NULL,
    6666  `updated` DATETIME NOT NULL DEFAULT "1970-01-01 00:00:00"
     
    114114      }
    115115    }
     116   
     117    // limit filter extended in 2.2.1
     118    pwg_query('UPDATE `' . $this->table . '` SET cond = "" WHERE type = "limit" AND cond = "limit";');
     119    pwg_query('ALTER TABLE `' . $this->table . '` CHANGE `cond` `cond` VARCHAR(32) NULL ;');
    116120
    117121    $this->installed = true;
Note: See TracChangeset for help on using the changeset viewer.