Ignore:
Timestamp:
Sep 13, 2013, 9:26:31 PM (11 years ago)
Author:
chronos
Message:
  • Added: Access to RSS channels restricted to higher level user with API token.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/UpdateTrace.php

    r574 r585  
    26002600}
    26012601
     2602function UpdateTo585($Manager)
     2603{
     2604  $Manager->Execute('CREATE TABLE IF NOT EXISTS `APIToken` (
     2605    `Id` int(11) NOT NULL AUTO_INCREMENT,
     2606    `User` int(11) NOT NULL,
     2607    `Token` varchar(255) NOT NULL,
     2608    PRIMARY KEY (`Id`),
     2609    KEY `User` (`User`)
     2610) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
     2611  $Manager->Execute('ALTER TABLE `APIToken`
     2612  ADD CONSTRAINT `APIToken_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);');
     2613}
    26022614
    26032615$Updates = array(
     
    26102622        543 => array('Revision' => 567, 'Function' => 'UpdateTo567'),
    26112623        567 => array('Revision' => 574, 'Function' => 'UpdateTo574'),
     2624        574 => array('Revision' => 585, 'Function' => 'UpdateTo585'),
    26122625);
Note: See TracChangeset for help on using the changeset viewer.