Fix general syntax problems, will be moving to different return style soon

This commit is contained in:
Miles Lott 2001-06-06 00:13:50 +00:00
parent 640bb0b773
commit 5b411bcd9f
2 changed files with 24 additions and 24 deletions

View File

@ -461,7 +461,6 @@
'tz' => array('type' => 'varchar', 'precision' => 8),
'geo' => array('type' => 'varchar', 'precision' => 32),
'url' => array('type' => 'varchar', 'precision' => 128),
'pubkey' => array('type' => 'text'),
'org_name' => array('type' => 'varchar', 'precision' => 64),
'org_unit' => array('type' => 'varchar', 'precision' => 64),
'title' => array('type' => 'varchar', 'precision' => 64),
@ -476,7 +475,6 @@
'adr_two_locality' => array('type' => 'varchar', 'precision' => 32),
'adr_two_region' => array('type' => 'varchar', 'precision' => 32),
'adr_two_postalcode' => array('type' => 'varchar', 'precision' => 32),
'adr_two_countryname' => array('type' => 'varchar', 'precision' => 32),
'adr_two_type' => array('type' => 'varchar', 'precision' => 64),
'tel_work' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => False),
'tel_home' => array('type' => 'varchar', 'precision' => 40, 'default' => '+1 (000) 000-0000', 'nullable' => False),

View File

@ -229,26 +229,28 @@
}
// calendar_entry => phpgw_cal
$oProc->CreateTable('phpgw_cal', array(
'fd' => array(
'cal_id' => array('type' => 'auto', 'nullable' => False),
'owner' => array('type' => 'int', 'precision' => 8, 'nullable' => False),
'category' => array('type' => 'int', 'precision' => 8, 'default' => '0', 'nullable' => False),
'groups' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'datetime' => array('type' => 'int', 'precision' => 8, 'nullable' => True),
'mdatetime' => array('type' => 'int', 'precision' => 8, 'nullable' => True),
'edatetime' => array('type' => 'int', 'precision' => 8, 'nullable' => True),
'priority' => array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '2'),
'cal_type' => array('type' => 'varchar', 'precision' => 10, 'nullable' => True),
'is_public' => array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '1'),
'title' => array('type' => 'varchar', 'precision' => 80, 'nullable' => False, 'default' => '1'),
'description' => array('type' => 'text', 'nullable' => True)
),
'pk' => array('cal_id'),
'fk' => array(),
'ix' => array(),
'uc' => array()
));
$oProc->CreateTable(
'phpgw_cal', array(
'fd' => array(
'cal_id' => array('type' => 'auto', 'nullable' => False),
'owner' => array('type' => 'int', 'precision' => 8, 'nullable' => False),
'category' => array('type' => 'int', 'precision' => 8, 'default' => '0', 'nullable' => False),
'groups' => array('type' => 'varchar', 'precision' => 255, 'nullable' => True),
'datetime' => array('type' => 'int', 'precision' => 8, 'nullable' => True),
'mdatetime' => array('type' => 'int', 'precision' => 8, 'nullable' => True),
'edatetime' => array('type' => 'int', 'precision' => 8, 'nullable' => True),
'priority' => array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '2'),
'cal_type' => array('type' => 'varchar', 'precision' => 10, 'nullable' => True),
'is_public' => array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '1'),
'title' => array('type' => 'varchar', 'precision' => 80, 'nullable' => False, 'default' => '1'),
'description' => array('type' => 'text', 'nullable' => True)
),
'pk' => array('cal_id'),
'fk' => array(),
'ix' => array(),
'uc' => array()
)
);
$oProc->m_odb->query('SELECT * FROM calendar_entry',__LINE__,__FILE__);
while($oProc->m_odb->next_record())
@ -379,7 +381,7 @@
$test[] = '0.9.11.004';
function calendar_upgrade0_9_11_004()
{
global $setup_info
global $setup_info;
$setup_info['calendar']['currentver'] = '0.9.11.005';
return True;
}
@ -387,7 +389,7 @@
$test[] = '0.9.11.005';
function calendar_upgrade0_9_11_005()
{
global $setup_info
global $setup_info;
$setup_info['calendar']['currentver'] = '0.9.11.006';
return True;
}