<?php
/**
 * Tine 2.0
 *
 * @package     Admin
 * @license     http://www.gnu.org/licenses/agpl.html AGPL3
 * @copyright   Copyright (c) 2013 Metaways Infosystems GmbH (http://www.metaways.de)
 * @author      Stefanie Stamer <s.stamer@metaways.de>
 */

class Admin_Setup_Update_Release8 extends Setup_Update_Abstract
{
    /**
     * update to 8.1
     * 
     * @return void
     */
    public function update_0()
    {
        Setup_Controller::getInstance()->createImportExportDefinitions(Tinebase_Application::getInstance()->getApplicationByName('Admin'));
        $this->setApplicationVersion('Admin', '8.1');
    }
    
    /**
     * update to 8.2
     * 
     * @return void
     */
    public function update_1()
    {
        Setup_Controller::getInstance()->createImportExportDefinitions(Tinebase_Application::getInstance()->getApplicationByName('Admin'));
        $this->setApplicationVersion('Admin', '8.2');
    }
    
    /**
     * update to 9.0
     *
     * @return void
     */
    public function update_2()
    {
        $this->setApplicationVersion('Admin', '9.0');
    }
}
