From 4a28077f468f0a688cd70f3b43e5ffc242bcb49a Mon Sep 17 00:00:00 2001
From: Kjartan Mannes Before doing anything backup your database. This process will change your database and its values, and some things might get lost. Don't run this script twice as it will cause some serious problems! Backup your database. If you haven't done it by now don't blame anyone if by some statistical anomaly things blow up and you loose all data. You might have to by-pass the access check near the bottom of the file called update.php such that you can gain access to the updates: search for user_access(). Choose one of the links below to either upgrade from Drupal 3.x or update from a CVS checkout. ";
+ print "Choose one of the links below to either upgrade from Drupal 3.x or update from a CVS checkout. Once you are done remove or disable access to update.php so nobody else can tamper with the database.
";
@@ -333,7 +333,7 @@ function update_24() {
update_sql("ALTER TABLE site ADD refresh int(11) NOT NULL;");
update_sql("ALTER TABLE site ADD threshold int(11) NOT NULL;");
update_sql("UPDATE site SET refresh = '7200';");
- update_sql("UPDATE site SET threshold = '50';");
+ update_sql("UPDATE site SET threshold = '60';");
}
function update_25() {
@@ -471,9 +471,9 @@ function update_31() {
}
// Clean up meta tag system
-/* update_sql("DROP TABLE collection");
+ update_sql("DROP TABLE collection");
update_sql("DROP TABLE tag");
- update_sql("ALTER TABLE node DROP attributes");*/
+ update_sql("ALTER TABLE node DROP attributes");
}
function update_upgrade3() {
@@ -605,8 +605,7 @@ function update_info() {
print "\n";
print "
\n";
+ print "
\n";
print "\n";
print "ALTER TABLE watchdog CHANGE user uid int(10) DEFAULT '0' NOT NULL;\n";
print "ALTER TABLE watchdog CHANGE id wid int(5) DEFAULT '0' NOT NULL auto_increment;\n";
@@ -620,21 +619,24 @@ function update_info() {
print "ALTER TABLE users ADD rid INT UNSIGNED NOT NULL;\n";
print "
» upgrading will by default enable the standard Drupal themes and modules as well as setting some default values.
» updating will require modules and themes enabled manually under Administer | Site configuration | modules.
";
+ print "» upgrading will by default enable the standard Drupal themes and modules as well as setting some default values.
";
+ print "» updating will require modules and themes enabled manually under Administer | Site configuration | modules.
";
+ print "
Go through the various administration pages to change the existing and new settings to your liking.
Remove or disable access to update.php so nobody else can tamper with the database.
Thanks for using Drupal!