Rolling back file_space column addition

This commit is contained in:
Miles Lott 2001-07-27 10:04:07 +00:00
parent a2c0d12173
commit 42b795992b
3 changed files with 34 additions and 3 deletions

View File

@ -14,7 +14,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'phpgwapi';
$setup_info['phpgwapi']['version'] = '0.9.13.005';
$setup_info['phpgwapi']['version'] = '0.9.13.006';
$setup_info['phpgwapi']['versions']['current_header'] = '1.16';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;

View File

@ -63,8 +63,7 @@
'account_lastpwd_change' => array('type' => 'int', 'precision' => 4),
'account_status' => array('type' => 'char', 'precision' => 1, 'nullable' => false, 'default' => 'A'),
'account_expires' => array('type' => 'int', 'precision' => 4),
'account_type' => array('type' => 'char', 'precision' => 1, 'nullable' => true),
'account_file_space' => array('type' => 'varchar', 'precision' => 25)
'account_type' => array('type' => 'char', 'precision' => 1, 'nullable' => true)
),
'pk' => array('account_id'),
'fk' => array(),

View File

@ -1946,4 +1946,36 @@
return $setup_info['phpgwapi']['currentver'];
}
$test[] = '0.9.13.005';
function phpgwapi_upgrade0_9_13_005()
{
global $setup_info, $phpgw_setup;
$newtbldef = array(
'fd' => array(
'account_id' => array('type' => 'auto', 'nullable' => false),
'account_lid' => array('type' => 'varchar', 'precision' => 25, 'nullable' => false),
'account_pwd' => array('type' => 'varchar', 'precision' => 32, 'nullable' => false),
'account_firstname' => array('type' => 'varchar', 'precision' => 50),
'account_lastname' => array('type' => 'varchar', 'precision' => 50),
'account_permissions' => array('type' => 'text'),
'account_groups' => array('type' => 'varchar', 'precision' => 30),
'account_lastlogin' => array('type' => 'int', 'precision' => 4),
'account_lastloginfrom' => array('type' => 'varchar', 'precision' => 255),
'account_lastpwd_change' => array('type' => 'int', 'precision' => 4),
'account_status' => array('type' => 'char', 'precision' => 1, 'nullable' => false, 'default' => 'A'),
'account_expires' => array('type' => 'int', 'precision' => 4),
'account_type' => array('type' => 'char', 'precision' => 1, 'nullable' => true)
),
'pk' => array('account_id'),
'fk' => array(),
'ix' => array(),
'uc' => array('account_lid')
);
$phpgw_setup->oProc->DropColumn('phpgw_accounts',$newtbldef,'account_file_space');
$setup_info['phpgwapi']['currentver'] = '0.9.13.006';
return $setup_info['phpgwapi']['currentver'];
}
?>