|
From: Paul S. O. <ps...@us...> - 2002-01-01 15:47:03
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv1308
Modified Files:
upgrade.php
Log Message:
Fix potential issue with themes table ... I knew Bart had a reason for dropping tables at the beginning :D
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/upgrade.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** upgrade.php 2002/01/01 00:27:55 1.14
--- upgrade.php 2002/01/01 15:46:59 1.15
***************
*** 558,563 ****
{
case 'start':
-
case 'cleanstart':
end_step('mod_old_tables');
--- 558,570 ----
{
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');
***************
*** 1233,1237 ****
}
! print "Removed $users_removed Users ... Done<br />\n";
echo "<br />Complete<br />\n";
--- 1240,1244 ----
}
! print "Removed $users_removed non-existent user references ... Done<br />\n";
echo "<br />Complete<br />\n";
***************
*** 1938,1942 ****
print "Dropping unused tables ... <br />\n";
! $drop_tables = array('access', 'forum_access', 'forum_mods', 'headermetafooter', 'sessions', 'themes', 'whosonline', $table_prefix . 'old_config');
for($i = 0; $i < count($drop_tables); $i++)
--- 1945,1949 ----
print "Dropping unused tables ... <br />\n";
! $drop_tables = array('access', 'forum_access', 'forum_mods', 'headermetafooter', 'whosonline', $table_prefix . 'old_config');
for($i = 0; $i < count($drop_tables); $i++)
|