This commit is contained in:
Cornelius Weiß 2005-06-12 14:01:58 +00:00
parent 3b46bbdd1d
commit 4adea438a9
4 changed files with 0 additions and 281 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,59 +0,0 @@
<?php
/**************************************************************************\
* eGroupWare - resources *
* http://www.egroupware.org *
* *
* Written by Cornelius Weiss [egw@von-und-zu-weiss.de] *
* ----------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$*/
$setup_info['resources']['name'] = 'resources';
$setup_info['resources']['title'] = 'resources';
$setup_info['resources']['version'] = '0.0.1.016';
$setup_info['resources']['app_order'] = 1;
$setup_info['resources']['tables'] = array('egw_resources');
$setup_info['resources']['enable'] = 1;
$setup_info['resources']['author'] = 'Cornelius Weiss';
$setup_info['resources']['license'] = 'GPL';
$setup_info['resources']['description'] = 'Resource management system';
$setup_info['resources']['note'] = 'This includes resource booking';
$setup_info['resources']['maintainer'] = array(
'name' => 'Cornelius Weiss',
'email' => 'egw@von-und-zu-weiss.de'
);
$setup_info['resources']['hooks']['preferences'] = 'resources.admin_prefs_sidebox_hooks.all_hooks';
$setup_info['resources']['hooks']['admin'] = 'resources.admin_prefs_sidebox_hooks.all_hooks';
$setup_info['resources']['hooks']['sidebox_menu'] = 'resources.admin_prefs_sidebox_hooks.all_hooks';
$setup_info['resources']['hooks']['search_link'] = 'resources.admin_prefs_sidebox_hooks.search_link';
// $setup_info['resources']['hooks'][] = 'home';
// $setup_info['resources']['hooks'][] = 'settings';
$setup_info['resources']['depends'][] = array(
'appname' => 'phpgwapi',
'versions' => Array('1.0.1')
);
$setup_info['resources']['depends'][] = array(
'appname' => 'etemplate',
'versions' => Array('1.0.0')
);
$setup_info['resources']['depends'][] = array( // cause of the link class
'appname' => 'infolog',
'versions' => Array('1.0.0')
);

View File

@ -1,40 +0,0 @@
<?php
/**************************************************************************\
* eGroupWare - Setup *
* http://www.eGroupWare.org *
* Created by eTemplates DB-Tools written by ralfbecker@outdoor-training.de *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
$phpgw_baseline = array(
'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','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'),
'accessories' => array('type' => 'varchar','precision' => '100'),
'picture_src' => array('type' => 'varchar','precision' => '20'),
'accessory_only' => array('type' => 'varchar','precision' => '1','default' => '0'),
'relatives' => array('type' => 'varchar','precision' => '100')
),
'pk' => array('id'),
'fk' => array(),
'ix' => array(),
'uc' => array()
)
);

View File

@ -1,131 +0,0 @@
<?php
/**************************************************************************\
* eGroupWare - Setup *
* http://www.eGroupWare.org *
* Created by eTemplates DB-Tools written by ralfbecker@outdoor-training.de *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
$test[] = '0.0.1.008';
function resources_upgrade0_0_1_008()
{
$GLOBALS['phpgw_setup']->oProc->AddColumn('egw_resources','picture_src',array(
'type' => 'varchar',
'precision' => '20'
));
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.012';
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'];
}
$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'];
}
$test[] = '0.0.1.015';
function resources_upgrade0_0_1_015()
{
$GLOBALS['phpgw_setup']->oProc->AlterColumn('egw_resources','accessories',array(
'type' => 'varchar',
'precision' => '100'
));
$GLOBALS['phpgw_setup']->oProc->AddColumn('egw_resources','accessory_only',array(
'type' => 'varchar',
'precision' => '1',
'default' => '0'
));
$GLOBALS['phpgw_setup']->oProc->AddColumn('egw_resources','relatives',array(
'type' => 'varchar',
'precision' => '100'
));
$GLOBALS['setup_info']['resources']['currentver'] = '0.0.1.016';
return $GLOBALS['setup_info']['resources']['currentver'];
}
?>