1<?php 2class HordePermsUpgradeAutoIncrement extends Horde_Db_Migration_Base 3{ 4 public function up() 5 { 6 $this->changeColumn('horde_perms', 'perm_id', 'autoincrementKey'); 7 try { 8 $this->dropTable('horde_perms_seq'); 9 } catch (Horde_Db_Exception $e) { 10 } 11 } 12 13 public function down() 14 { 15 $this->changeColumn('horde_perms', 'perm_id', 'integer', array('null' => false)); 16 } 17}