mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
remove blobs from db
This commit is contained in:
parent
42fca9a82e
commit
b4f9ff0384
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
$setup_info['resources']['name'] = 'resources';
|
$setup_info['resources']['name'] = 'resources';
|
||||||
$setup_info['resources']['title'] = 'resources';
|
$setup_info['resources']['title'] = 'resources';
|
||||||
$setup_info['resources']['version'] = '0.0.1.013';
|
$setup_info['resources']['version'] = '0.0.1.015';
|
||||||
$setup_info['resources']['app_order'] = 1;
|
$setup_info['resources']['app_order'] = 1;
|
||||||
$setup_info['resources']['tables'] = array('egw_resources');
|
$setup_info['resources']['tables'] = array('egw_resources');
|
||||||
$setup_info['resources']['enable'] = 1;
|
$setup_info['resources']['enable'] = 1;
|
||||||
@ -47,3 +47,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
$setup_info['resources']['name'] = 'resources';
|
$setup_info['resources']['name'] = 'resources';
|
||||||
$setup_info['resources']['title'] = 'resources';
|
$setup_info['resources']['title'] = 'resources';
|
||||||
$setup_info['resources']['version'] = '0.0.1.012';
|
$setup_info['resources']['version'] = '0.0.1.014';
|
||||||
$setup_info['resources']['app_order'] = 1;
|
$setup_info['resources']['app_order'] = 1;
|
||||||
$setup_info['resources']['tables'] = array('egw_resources');
|
$setup_info['resources']['tables'] = array('egw_resources');
|
||||||
$setup_info['resources']['enable'] = 1;
|
$setup_info['resources']['enable'] = 1;
|
||||||
@ -46,3 +46,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,17 +20,15 @@
|
|||||||
'name' => array('type' => 'varchar','precision' => '100'),
|
'name' => array('type' => 'varchar','precision' => '100'),
|
||||||
'short_description' => array('type' => 'varchar','precision' => '100'),
|
'short_description' => array('type' => 'varchar','precision' => '100'),
|
||||||
'cat_id' => array('type' => 'int','precision' => '11','nullable' => False),
|
'cat_id' => array('type' => 'int','precision' => '11','nullable' => False),
|
||||||
'quantity' => array('type' => 'int','precision' => '11'),
|
'quantity' => array('type' => 'int','precision' => '11','default' => '1'),
|
||||||
'useable' => array('type' => 'int','precision' => '11'),
|
'useable' => array('type' => 'int','precision' => '11','default' => '1'),
|
||||||
'location' => array('type' => 'varchar','precision' => '100'),
|
'location' => array('type' => 'varchar','precision' => '100'),
|
||||||
'bookable' => array('type' => 'varchar','precision' => '1'),
|
'bookable' => array('type' => 'varchar','precision' => '1'),
|
||||||
'buyable' => array('type' => 'varchar','precision' => '1'),
|
'buyable' => array('type' => 'varchar','precision' => '1'),
|
||||||
'prize' => array('type' => 'varchar','precision' => '200'),
|
'prize' => array('type' => 'varchar','precision' => '200'),
|
||||||
'long_description' => array('type' => 'longtext'),
|
'long_description' => array('type' => 'longtext'),
|
||||||
'picture' => array('type' => 'blob'),
|
|
||||||
'accessories' => array('type' => 'varchar','precision' => '50'),
|
'accessories' => array('type' => 'varchar','precision' => '50'),
|
||||||
'picture_src' => array('type' => 'varchar','precision' => '20'),
|
'picture_src' => array('type' => 'varchar','precision' => '20')
|
||||||
'picture_thumb' => array('type' => 'blob')
|
|
||||||
),
|
),
|
||||||
'pk' => array('id'),
|
'pk' => array('id'),
|
||||||
'fk' => array(),
|
'fk' => array(),
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
'buyable' => array('type' => 'varchar','precision' => '1'),
|
'buyable' => array('type' => 'varchar','precision' => '1'),
|
||||||
'prize' => array('type' => 'varchar','precision' => '200'),
|
'prize' => array('type' => 'varchar','precision' => '200'),
|
||||||
'long_description' => array('type' => 'longtext'),
|
'long_description' => array('type' => 'longtext'),
|
||||||
'picture' => array('type' => 'blob'),
|
|
||||||
'accessories' => array('type' => 'varchar','precision' => '50'),
|
'accessories' => array('type' => 'varchar','precision' => '50'),
|
||||||
'picture_src' => array('type' => 'varchar','precision' => '20')
|
'picture_src' => array('type' => 'varchar','precision' => '20')
|
||||||
),
|
),
|
||||||
|
@ -35,4 +35,75 @@
|
|||||||
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.013';
|
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.013';
|
||||||
return $GLOBALS['setup_info']['resources']['currentver'];
|
return $GLOBALS['setup_info']['resources']['currentver'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$test[] = '0.0.1.013';
|
||||||
|
function resources_upgrade0_0_1_013()
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw_setup']->oProc->DropColumn('egw_resources',array(
|
||||||
|
'fd' => array(
|
||||||
|
'id' => array('type' => 'auto'),
|
||||||
|
'name' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'short_description' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'cat_id' => array('type' => 'int','precision' => '11','nullable' => False),
|
||||||
|
'quantity' => array('type' => 'int','precision' => '11'),
|
||||||
|
'useable' => array('type' => 'int','precision' => '11'),
|
||||||
|
'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'),
|
||||||
|
'accessories' => array('type' => 'varchar','precision' => '50'),
|
||||||
|
'picture_src' => array('type' => 'varchar','precision' => '20'),
|
||||||
|
'picture_thumb' => array('type' => 'blob')
|
||||||
|
),
|
||||||
|
'pk' => array('id'),
|
||||||
|
'fk' => array(),
|
||||||
|
'ix' => array(),
|
||||||
|
'uc' => array()
|
||||||
|
),'picture');
|
||||||
|
$GLOBALS['phpgw_setup']->oProc->DropColumn('egw_resources',array(
|
||||||
|
'fd' => array(
|
||||||
|
'id' => array('type' => 'auto'),
|
||||||
|
'name' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'short_description' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'cat_id' => array('type' => 'int','precision' => '11','nullable' => False),
|
||||||
|
'quantity' => array('type' => 'int','precision' => '11'),
|
||||||
|
'useable' => array('type' => 'int','precision' => '11'),
|
||||||
|
'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'),
|
||||||
|
'accessories' => array('type' => 'varchar','precision' => '50'),
|
||||||
|
'picture_src' => array('type' => 'varchar','precision' => '20')
|
||||||
|
),
|
||||||
|
'pk' => array('id'),
|
||||||
|
'fk' => array(),
|
||||||
|
'ix' => array(),
|
||||||
|
'uc' => array()
|
||||||
|
),'picture_thumb');
|
||||||
|
|
||||||
|
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.014';
|
||||||
|
return $GLOBALS['setup_info']['resources']['currentver'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$test[] = '0.0.1.014';
|
||||||
|
function resources_upgrade0_0_1_014()
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw_setup']->oProc->AlterColumn('egw_resources','quantity',array(
|
||||||
|
'type' => 'int',
|
||||||
|
'precision' => '11',
|
||||||
|
'default' => '1'
|
||||||
|
));
|
||||||
|
$GLOBALS['phpgw_setup']->oProc->AlterColumn('egw_resources','useable',array(
|
||||||
|
'type' => 'int',
|
||||||
|
'precision' => '11',
|
||||||
|
'default' => '1'
|
||||||
|
));
|
||||||
|
|
||||||
|
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.015';
|
||||||
|
return $GLOBALS['setup_info']['resources']['currentver'];
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -23,4 +23,68 @@
|
|||||||
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.012';
|
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.012';
|
||||||
return $GLOBALS['setup_info']['resources']['currentver'];
|
return $GLOBALS['setup_info']['resources']['currentver'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$test[] = '0.0.1.012';
|
||||||
|
function resources_upgrade0_0_1_012()
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw_setup']->oProc->AddColumn('egw_resources','picture_thumb',array(
|
||||||
|
'type' => 'blob'
|
||||||
|
));
|
||||||
|
|
||||||
|
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.013';
|
||||||
|
return $GLOBALS['setup_info']['resources']['currentver'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$test[] = '0.0.1.013';
|
||||||
|
function resources_upgrade0_0_1_013()
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw_setup']->oProc->DropColumn('egw_resources',array(
|
||||||
|
'fd' => array(
|
||||||
|
'id' => array('type' => 'auto'),
|
||||||
|
'name' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'short_description' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'cat_id' => array('type' => 'int','precision' => '11','nullable' => False),
|
||||||
|
'quantity' => array('type' => 'int','precision' => '11'),
|
||||||
|
'useable' => array('type' => 'int','precision' => '11'),
|
||||||
|
'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'),
|
||||||
|
'accessories' => array('type' => 'varchar','precision' => '50'),
|
||||||
|
'picture_src' => array('type' => 'varchar','precision' => '20'),
|
||||||
|
'picture_thumb' => array('type' => 'blob')
|
||||||
|
),
|
||||||
|
'pk' => array('id'),
|
||||||
|
'fk' => array(),
|
||||||
|
'ix' => array(),
|
||||||
|
'uc' => array()
|
||||||
|
),'picture');
|
||||||
|
$GLOBALS['phpgw_setup']->oProc->DropColumn('egw_resources',array(
|
||||||
|
'fd' => array(
|
||||||
|
'id' => array('type' => 'auto'),
|
||||||
|
'name' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'short_description' => array('type' => 'varchar','precision' => '100'),
|
||||||
|
'cat_id' => array('type' => 'int','precision' => '11','nullable' => False),
|
||||||
|
'quantity' => array('type' => 'int','precision' => '11'),
|
||||||
|
'useable' => array('type' => 'int','precision' => '11'),
|
||||||
|
'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'),
|
||||||
|
'accessories' => array('type' => 'varchar','precision' => '50'),
|
||||||
|
'picture_src' => array('type' => 'varchar','precision' => '20')
|
||||||
|
),
|
||||||
|
'pk' => array('id'),
|
||||||
|
'fk' => array(),
|
||||||
|
'ix' => array(),
|
||||||
|
'uc' => array()
|
||||||
|
),'picture_thumb');
|
||||||
|
|
||||||
|
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.014';
|
||||||
|
return $GLOBALS['setup_info']['resources']['currentver'];
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user