diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-24 21:51:19 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-24 21:51:19 +0000 |
| commit | 8c6527553c6b7f78d41a6bea43239bad5aa727aa (patch) | |
| tree | 5f7ff9df120ce1aee62b17eec6c4f2275f0c9d65 /phpBB/update_to_RC1.php | |
| parent | e2bba5b6ffd515eae87902c2e929e0d351af580c (diff) | |
| download | forums-8c6527553c6b7f78d41a6bea43239bad5aa727aa.tar forums-8c6527553c6b7f78d41a6bea43239bad5aa727aa.tar.gz forums-8c6527553c6b7f78d41a6bea43239bad5aa727aa.tar.bz2 forums-8c6527553c6b7f78d41a6bea43239bad5aa727aa.tar.xz forums-8c6527553c6b7f78d41a6bea43239bad5aa727aa.zip | |
Update for topic_moved_id
git-svn-id: file:///svn/phpbb/trunk@1719 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/update_to_RC1.php')
| -rw-r--r-- | phpBB/update_to_RC1.php | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/phpBB/update_to_RC1.php b/phpBB/update_to_RC1.php index 8c74297763..62b3ccd097 100644 --- a/phpBB/update_to_RC1.php +++ b/phpBB/update_to_RC1.php @@ -18,6 +18,8 @@ switch(SQL_LAYER) ADD INDEX (user_session_time)"; $sql[] = "ALTER TABLE " . SEARCH_TABLE . " MODIFY search_id int(11) NOT NULL"; + $sql[] = "ALTER TABLE " . TOPICS_TABLE . " + MODIFY topic_moved_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL"; break; case 'postgresql': @@ -57,21 +59,33 @@ switch(SQL_LAYER) break; } + $errored = false; for($i = 0; $i < count($sql); $i++) { - echo "Running :: " . $sql[$i] . "<br />\n"; + echo "Running >>> " . $sql[$i]; $result = $db->sql_query($sql[$i]); if( !$result ) { + $errored = true; $error = $db->sql_error(); - die("Failed executing statement<br />\nError :: " . $error['message'] . "<br />\nSQL :: " . $sql[$i]); + echo " :: <b>FAILED</b> <u>( " . $error['message'] . " )</u><br /><br />\n\n"; + } + else + { + echo " :: <b>COMPLETED</b><br /><br />\n\n"; } - } - echo "\n<br /><br />\nCOMPLETE! Please delete this file before continuing!<br />\n"; + if( $errored ) + { + echo "\n<br /><br />Errors occured! Please check and correct issues as required<br />\n"; + } + else + { + echo "\n<br /><br />\nCOMPLETE! Please delete this file before continuing!<br />\n"; + } ?> </body> |
