|
From: Benjamin C. <bc...@us...> - 2003-03-02 15:28:57
|
Update of /cvsroot/phpbt/phpbt
In directory sc8-pr-cvs1:/tmp/cvs-serv22876
Modified Files:
upgrade.php
Log Message:
Allow for renaming of the devloper group and for choosing which group can be assigned bugs. Need to run upgrade.php to insert the new configuration variable.
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/upgrade.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- upgrade.php 5 Nov 2002 18:07:03 -0000 1.28
+++ upgrade.php 2 Mar 2003 15:28:54 -0000 1.29
@@ -29,13 +29,13 @@
function upgrade() {
global $db;
- $upgraded = $db->getOne('select varname from '.TBL_CONFIGURATION.' where varname = \'BUG_UNCONFIRMED\'');
+ $upgraded = $db->getOne('select varname from '.TBL_CONFIGURATION.' where varname = \'GROUP_ASSIGN_TO\'');
if (!$upgraded or DB::isError($upgraded)) {
if (!@is_writeable('c_templates')) {
include('templates/default/base/templatesperm.html');
exit;
}
- switch(DB_TYPE) {
+ /*switch(DB_TYPE) {
case 'pgsql' :
$db->query("alter table ".TBL_USER_PREF." add saved_queries int2");
$db->query("alter table ".TBL_USER_PREF." alter saved_queries set default 1");
@@ -77,14 +77,9 @@
break;
case 'oci8' :
break;
- }
+ }*/
- $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('SEND_MIME_EMAIL', '1', 'Whether to use MIME quoted-printable encoded emails or not', 'bool')");
- $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_UNCONFIRMED', '1', 'The status to assign a bug when it is first submitted.', 'multi')");
- $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_PROMOTED', '2', 'The status to assign a bug when it is promoted (if enabled).', 'multi')");
- $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_ASSIGNED', '3', 'The status to assign a bug when it is assigned.', 'multi')");
- $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_REOPENED', '4', 'The status to assign a bug when it is reopened.', 'multi')");
- $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_CLOSED', '7', 'The status to assign a bug when it is closed.', 'multi')");
+ $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('ASSIGN_TO_GROUP', '3', 'The group to whom bugs can be assigned', 'multi');");
}
include 'templates/default/upgrade-finished.html';
}
|