3
* Adds autoincrement flags
5
* Copyright 2010-2013 Horde LLC (http://www.horde.org/)
7
* See the enclosed file LICENSE for license information (ASL). If you
8
* did not receive this file, see http://www.horde.org/licenses/apache.
10
* @author Michael J. Rubinsky <mrubinsk@horde.org>
12
* @license http://www.horde.org/licenses/apache ASL
15
class TurbaUpgradeAutoIncrement extends Horde_Db_Migration_Base
22
$this->changeColumn('turba_shares', 'share_id', 'autoincrementKey');
24
$this->dropTable('turba_shares_seq');
25
} catch (Horde_Db_Exception $e) {
32
public function down()
34
$this->changeColumn('turba_shares', 'share_id', 'integer', array('autoincrement' => false));