This forum is for questions about upgrading an existing Drupal site. Don't forget to read the UPGRADE.txt file that comes with every Drupal download.

Database errors when updating to 4.7.3

I've just followed the process to upgrade from 4.6.x to 4.7.x and I get a load of errors after running the databse update script (see below).

any suggestions on what to do to sort this out or am I just best off reverting to 4.6.x and forgetting it!?

* user warning: Table 'contact' already exists query: CREATE TABLE contact ( subject varchar(255) NOT NULL default '', recipients longtext NOT NULL default '', reply longtext NOT NULL default '' ) in /home/westpco1/public_html/includes/database.mysql.inc on line 120.
* user warning: Unknown column 'subject' in 'contact' query: ALTER TABLE contact CHANGE subject category VARCHAR(255) NOT NULL in /home/westpco1/public_html/includes/database.mysql.inc on line 120.
* user warning: Multiple primary key defined query: ALTER TABLE contact ADD PRIMARY KEY (category) in /home/westpco1/public_html/includes/database.mysql.inc on line 120.
* user warning: Table 'node_revisions' already exists query: CREATE TABLE node_revisions SELECT nid, nid AS vid, uid, type, title, body, teaser, changed AS timestamp, format FROM node in /home/westpco1/public_html/includes/database.mysql.inc on line 120.
* user warning: Duplicate column name 'log' query: ALTER TABLE node_revisions ADD log longtext in /home/westpco1/public_html/includes/database.mysql.inc on line 120.
* user warning: Multiple primary key defined query: ALTER TABLE node_revisions ADD PRIMARY KEY vid (vid) in /home/westpco1/public_html/includes/database.mysql.inc on line 120.

user table error

okay,
going from 4.6 (a civicspace .8.5 site) to 4.7
i get the following error on the user table

user warning: Duplicate entry 'che' for key 2 query: ALTER TABLE users CHANGE `name` `name` varchar(60) CHARACTER SET utf8 DEFAULT '' NOT NULL, CHANGE `pass` `pass` varchar(32) CHARACTER SET utf8 DEFAULT '' NOT NULL, CHANGE `mail` `mail` varchar(64) CHARACTER SET utf8 DEFAULT '' NULL, CHANGE `theme` `theme` varchar(255) CHARACTER SET utf8 DEFAULT '' NOT NULL, CHANGE `signature` `signature` varchar(255) CHARACTER SET utf8 DEFAULT '' NOT NULL, CHANGE `timezone` `timezone` varchar(8) CHARACTER SET utf8 DEFAULT '' NULL, CHANGE `language` `language` varchar(12) CHARACTER SET utf8 DEFAULT '' NOT NULL, CHANGE `picture` `picture` varchar(255) CHARACTER SET utf8 DEFAULT '' NOT NULL, CHANGE `init` `init` varchar(64) CHARACTER SET utf8 DEFAULT '' NULL, CHANGE `data` `data` longtext CHARACTER SET utf8 DEFAULT '' NULL in /home/veggie/public_html/includes/database.mysql.inc on line 120.
 

the old structure of the user table is

-- ----------------------------
-- Table structure for users
-- ----------------------------
CREATE TABLE `users` (
`uid` int(10) unsigned NOT NULL default '0',
`name` varchar(60) NOT NULL default '',
`pass` varchar(32) NOT NULL default '',
`mail` varchar(64) default '',
`mode` tinyint(1) NOT NULL default '0',
`sort` tinyint(1) default '0',

What happens if I downgrade an install?

Okay... here's the problem.

We've got two drupal installs - a bare 4.7.x version with some bolt on stuff examining the database for some metrics and a 4.6.x version with some heavily modified modules. I need to merge the two together.

Rather than seeing what happens to all those modified modules, i want to downgrade the first one from 4.7.x to 4.6.x

Is this a really bad idea? Will everything break horribly or are the databases basically identical?

Thanks in advance guys...

Modules in 4.7.3

I just upgraded to 4.7.3 and everything seems to be working fine except one thing. When to go to the modules administration, all I get is a blank white page, with nothing on it. The address I'm going to is...

www.example.com/?q=admin/modules

I have no idea why. Everything else is running fine. I followed all of the instructions in the UPGRADE.txt file which came with it.

Any ideas? Is it a file problem or database problem? I checked the log after going there and nothing new was written.

Fantastico has updated to Drupal 4.7.2 but 1 question remains

Dries and all Drupal.org users;

I am Malaysian based Drupaller, and today (which is my birthday :) I checked the Fantastico and it has Drupal 4.7.2 ready to be installed. Thank you Netenberg.

But my question is:

UPGRADE LINK - Since Drupal 4.6.x and 4.7.x are radically diferrent, it will be dangerous for someone without appropriate knowledge or skill to just click on the `upgrade link' and resulting in wrecked site!

Why would Fantastico treat upgrading from 4.6.x to 4.7.2 just like a child's play when it is not?

Content all lost updating from 4.6.0 to 4.6.9

Was going to upgrade to 4.7.3 but read on the forum that I should upgrade to the lastest 4.6.x. So I did install 4.6.9.

The first time I ran "update.php", I got error messages from the "include/database.mysql.inc" script saying that it had encountered duplicates in the "sessions" table when trying to insert a record. It seems to me that the "sid" field got resized from 10 to 33. I fixed the column size and the error went away.

After running "update.php", the report I get seems to indicate that the update went OK:

Drupal database update

    * main page
    * administration pages

2005-04-14

2005-05-06

2005-05-07

ALTER TABLE {locales_source} CHANGE location location varchar(255) NOT NULL default '' 
OK


Updates were attempted. If you see no failures above, you may proceed happily to the administration pages. Otherwise, you may need to update your database manually.

However, now I get this in the main page:

{head} {styles}
{_BLOCK_.header.logo} {_BLOCK_.header.site_name} {_BLOCK_.header.site_slogan} 	
{secondary_links}
{primary_links}
{_BLOCK_.header.search_box}
{_BLOCK_.footer.blocks}

Welcome to your new Drupal-powered website. This message will guide you through your first steps with Drupal,
and will disappear once you have posted your first piece of content.

The first thing you will need to do is create the first account. This account will have full administration rights and 

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal