forked from extern/egroupware
fixing tables-update
This commit is contained in:
parent
9c3945a4cc
commit
4057b2da43
@ -28,7 +28,7 @@
|
|||||||
'prize' => array('type' => 'varchar','precision' => '200'),
|
'prize' => array('type' => 'varchar','precision' => '200'),
|
||||||
'long_description' => array('type' => 'longtext'),
|
'long_description' => array('type' => 'longtext'),
|
||||||
'picture_src' => array('type' => 'varchar','precision' => '20'),
|
'picture_src' => array('type' => 'varchar','precision' => '20'),
|
||||||
'accessoriy_of' => array('type' => 'int','precision' => '11','default' => '-1')
|
'accessory_of' => array('type' => 'int','precision' => '11','default' => '-1')
|
||||||
),
|
),
|
||||||
'pk' => array('id'),
|
'pk' => array('id'),
|
||||||
'fk' => array(),
|
'fk' => array(),
|
||||||
|
@ -133,7 +133,6 @@
|
|||||||
$test[] = '0.0.1.016';
|
$test[] = '0.0.1.016';
|
||||||
function resources_upgrade0_0_1_016()
|
function resources_upgrade0_0_1_016()
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw_setup']->oProc->RenameColumn('egw_resources','accessories','picture_src');
|
|
||||||
$GLOBALS['phpgw_setup']->oProc->DropColumn('egw_resources',array(
|
$GLOBALS['phpgw_setup']->oProc->DropColumn('egw_resources',array(
|
||||||
'fd' => array(
|
'fd' => array(
|
||||||
'id' => array('type' => 'auto'),
|
'id' => array('type' => 'auto'),
|
||||||
@ -177,16 +176,31 @@
|
|||||||
'ix' => array(),
|
'ix' => array(),
|
||||||
'uc' => array()
|
'uc' => array()
|
||||||
),'relatives');
|
),'relatives');
|
||||||
$GLOBALS['phpgw_setup']->oProc->AddColumn('egw_resources','picture_src',array(
|
$GLOBALS['phpgw_setup']->oProc->DropColumn('egw_resources',array(
|
||||||
'type' => 'varchar',
|
'fd' => array(
|
||||||
'precision' => '20'
|
'id' => array('type' => 'auto'),
|
||||||
));
|
'name' => array('type' => 'varchar','precision' => '100'),
|
||||||
$GLOBALS['phpgw_setup']->oProc->AlterColumn('egw_resources','accessoriy_of',array(
|
'short_description' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'cat_id' => array('type' => 'int','precision' => '11','nullable' => False),
|
||||||
|
'quantity' => array('type' => 'int','precision' => '11','default' => '1'),
|
||||||
|
'useable' => array('type' => 'int','precision' => '11','default' => '1'),
|
||||||
|
'location' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'bookable' => array('type' => 'varchar','precision' => '1'),
|
||||||
|
'buyable' => array('type' => 'varchar','precision' => '1'),
|
||||||
|
'prize' => array('type' => 'varchar','precision' => '200'),
|
||||||
|
'long_description' => array('type' => 'longtext'),
|
||||||
|
'picture_src' => array('type' => 'varchar','precision' => '20')
|
||||||
|
),
|
||||||
|
'pk' => array('id'),
|
||||||
|
'fk' => array(),
|
||||||
|
'ix' => array(),
|
||||||
|
'uc' => array()
|
||||||
|
),'accessories');
|
||||||
|
$GLOBALS['phpgw_setup']->oProc->AddColumn('egw_resources','accessory_of',array(
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
'precision' => '11',
|
'precision' => '11',
|
||||||
'default' => '-1'
|
'default' => '-1'
|
||||||
));
|
));
|
||||||
|
|
||||||
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.017';
|
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.017';
|
||||||
return $GLOBALS['setup_info']['resources']['currentver'];
|
return $GLOBALS['setup_info']['resources']['currentver'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user