Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom fields tables to the upgrade scripts.
Use config options instead of constants for table names. Add upgrades to fix the double escaping problems in old db data. * upgrade_warning.php: go to upgrade_list.php instead of upgrade.php * upgrade_list.php: new file that gives a list of upgrade sets * upgrade.php: * upgrade_advanced.php: give a link to return the upgrade list page * upgrade_inc.php: * upgrades/0_13_inc.php: * upgrades/0_14_inc.php: * upgrades/0_15_inc.php: * upgrades/0_16_inc.php: use config options to get table names * upgrades/0_17_inc.php: + use config options to get table names + add upgrade to drop mantis_project_customization table if it exists + add upgrades to add the custom fields tables * db_table_names_inc.php: new file that loads all the table names from config options into global variables * upgrade_escaping.php: new file that does the db escaping fix upgrades * upgrades/0_17_escaping_fixes_inc.php: new file that actually contains the upgrades for the double escaping fixes git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1853 f5dc347c-c33d-0410-90a0-b07cc1902cb9
- Loading branch information
Julian Fitzell
committed
Feb 16, 2003
1 parent
65d40c2
commit 08e31a7
Showing
13 changed files
with
515 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
require_once( '../core.php' ); | ||
|
||
# Load all the table names for use by the upgrade statements | ||
$t_bug_file_table = config_get( 'mantis_bug_file_table' ); | ||
$t_bug_history_table = config_get( 'mantis_bug_history_table' ); | ||
$t_bug_monitor_table = config_get( 'mantis_bug_monitor_table' ); | ||
$t_bug_relationship_table = config_get( 'mantis_bug_relationship_table' ); | ||
$t_bug_table = config_get( 'mantis_bug_table' ); | ||
$t_bug_text_table = config_get( 'mantis_bug_text_table' ); | ||
$t_bugnote_table = config_get( 'mantis_bugnote_table' ); | ||
$t_bugnote_text_table = config_get( 'mantis_bugnote_text_table' ); | ||
$t_news_table = config_get( 'mantis_news_table' ); | ||
$t_project_category_table = config_get( 'mantis_project_category_table' ); | ||
$t_project_file_table = config_get( 'mantis_project_file_table' ); | ||
$t_project_table = config_get( 'mantis_project_table' ); | ||
$t_project_user_list_table = config_get( 'mantis_project_user_list_table' ); | ||
$t_project_version_table = config_get( 'mantis_project_version_table' ); | ||
$t_user_table = config_get( 'mantis_user_table' ); | ||
$t_user_profile_table = config_get( 'mantis_user_profile_table' ); | ||
$t_user_pref_table = config_get( 'mantis_user_pref_table' ); | ||
$t_user_print_pref_table = config_get( 'mantis_user_print_pref_table' ); | ||
$t_custom_field_project_table = config_get( 'mantis_custom_field_project_table' ); | ||
$t_custom_field_table = config_get( 'mantis_custom_field_table' ); | ||
$t_custom_field_string_table = config_get( 'mantis_custom_field_string_table' ); | ||
$t_upgrade_table = config_get( 'mantis_upgrade_table' ); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
# Mantis - a php based bugtracking system | ||
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org | ||
# Copyright (C) 2002 - 2003 Mantis Team - mantisbt-dev@lists.sourceforge.net | ||
# This program is distributed under the terms and conditions of the GPL | ||
# See the README and LICENSE files for details | ||
?> | ||
<?php | ||
require_once ( 'upgrade_inc.php' ); | ||
|
||
$upgrade_set = new UpgradeSet(); | ||
|
||
$upgrade_set->add_items( include( 'upgrades/0_17_escaping_fixes_inc.php' ) ); | ||
?> | ||
<html> | ||
<head> | ||
<title> Mantis Administration - String Escaping Database Fixes </title> | ||
<link rel="stylesheet" type="text/css" href="admin.css" /> | ||
</head> | ||
<body> | ||
|
||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff"> | ||
<tr class="top-bar"> | ||
<td class="links"> | ||
[ <a href="upgrade_list.php">Back to Upgrade List</a> ] | ||
[ <a href="upgrade_escaping.php">Refresh view</a> ] | ||
</td> | ||
<td class="title"> | ||
String Escaping Database Fixes | ||
</td> | ||
</tr> | ||
</table> | ||
<br /><br /> | ||
|
||
<?php | ||
$upgrade_set->process_post_data(); | ||
?> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<html> | ||
<head> | ||
<title> Mantis Administration - Upgrade List </title> | ||
<link rel="stylesheet" type="text/css" href="admin.css" /> | ||
</head> | ||
<body> | ||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff"> | ||
<tr class="top-bar"> | ||
<td class="links"> | ||
[ <a href="index.php">Back to Administration</a> ] | ||
</td> | ||
<td class="title"> | ||
Upgrade Installation | ||
</td> | ||
</tr> | ||
</table> | ||
<br /><br /> | ||
<div align="center"> | ||
<table width="75%"><tr><td align="center"> | ||
<h1>List of Upgrade Sets</h1> | ||
<p>[ <a href="upgrade.php">Basic upgrade set (required)</a> ]</p> | ||
<p>[ <a href="upgrade_escaping.php">String escaping fixes (recommended)</a> ]</p> | ||
</td></tr></table> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.