Changeset 208


Ignore:
Timestamp:
06/22/09 14:19:29 (8 years ago)
Author:
sander
Message:

Add upgrade command to set state on results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/vendors/shells/upgrade.php

    r205 r208  
    2727{ 
    2828        /** @var array Use the Request model */ 
    29         public $uses = array('Request'); 
     29        public $uses = array('Request', 'Result'); 
    3030 
    3131        /** 
     
    119119 
    120120        /** 
     121         * Upgrade the result state 
     122         */ 
     123        public function resultState() 
     124        { 
     125                $this->Result->updateAll( 
     126                        array('state' => Result::STATE_FINISHED) 
     127                ); 
     128        } 
     129 
     130        /** 
    121131         * Print shell help 
    122132         */ 
     
    131141                $this->out("\n\trequestStateFlag\n\t\tUpgrade from sequential to binary state flags."); 
    132142                $this->out("\n\tjobCount\n\t\tUpdate the job_count and result_count on all requests."); 
     143                $this->out("\n\tresultState\n\t\tUpdate the result state to finished."); 
    133144                $this->out("\n\thelp\n\t\tShow this help"); 
    134145                $this->out(''); 
Note: See TracChangeset for help on using the changeset viewer.