1<?php 2/** 3 */ 4class HordeAuthBaseTables extends Horde_Db_Migration_Base 5{ 6 /** 7 */ 8 public function up() 9 { 10 if (!in_array('horde_users', $this->tables())) { 11 $t = $this->createTable('horde_users', array('autoincrementKey' => array('user_uid'))); 12 $t->column('user_uid', 'string', array('limit' => 255, 'null' => false)); 13 $t->column('user_pass', 'string', array('limit' => 255, 'null' => false)); 14 $t->column('user_soft_expiration_date', 'integer'); 15 $t->column('user_hard_expiration_date', 'integer'); 16 $t->end(); 17 } 18 } 19 20 /** 21 */ 22 public function down() 23 { 24 $this->dropTable('horde_users'); 25 } 26} 27