aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-01-01 15:46:59 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-01-01 15:46:59 +0000
commitbbccb4b745c417081a9e9b9c90684264c0c37d39 (patch)
tree86a9ac2165e29bd6e6b892be5110b9aa2221385d /phpBB
parent26d4c2d1877cf304a83139aab6e23d51691b57d5 (diff)
downloadforums-bbccb4b745c417081a9e9b9c90684264c0c37d39.tar
forums-bbccb4b745c417081a9e9b9c90684264c0c37d39.tar.gz
forums-bbccb4b745c417081a9e9b9c90684264c0c37d39.tar.bz2
forums-bbccb4b745c417081a9e9b9c90684264c0c37d39.tar.xz
forums-bbccb4b745c417081a9e9b9c90684264c0c37d39.zip
Fix potential issue with themes table ... I knew Bart had a reason for dropping tables at the beginning :D
git-svn-id: file:///svn/phpbb/trunk@1766 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/upgrade.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/phpBB/upgrade.php b/phpBB/upgrade.php
index 68623d269b..99bf9f70cd 100644
--- a/phpBB/upgrade.php
+++ b/phpBB/upgrade.php
@@ -557,8 +557,15 @@ if( !empty($next) )
switch($next)
{
case 'start':
-
case 'cleanstart':
+ print "Dropping sessions and themes tables ... ";
+ flush();
+
+ query("DROP TABLE sessions", "Couldn't drop table 'sessions'");
+ query("DROP TABLE themes", "Couldn't drop table 'themes'");
+
+ print "Done<br />\n";
+
end_step('mod_old_tables');
case 'mod_old_tables':
@@ -1232,7 +1239,7 @@ if( !empty($next) )
query($sql, "Couldn't update posts to remove deleted user poster_id values");
}
- print "Removed $users_removed Users ... Done<br />\n";
+ print "Removed $users_removed non-existent user references ... Done<br />\n";
echo "<br />Complete<br />\n";
end_step('convert_pm');
@@ -1937,7 +1944,7 @@ if( !empty($next) )
common_header();
print "Dropping unused tables ... <br />\n";
- $drop_tables = array('access', 'forum_access', 'forum_mods', 'headermetafooter', 'sessions', 'themes', 'whosonline', $table_prefix . 'old_config');
+ $drop_tables = array('access', 'forum_access', 'forum_mods', 'headermetafooter', 'whosonline', $table_prefix . 'old_config');
for($i = 0; $i < count($drop_tables); $i++)
{