I just checked out the 5.x-1.1 version and ran update.php to perform the 5 update. The update goes all fine, no errors are returned.

But, somehow, the copyright_user table which is supposed to be created in this update, has not been made. I'm still investigating what causes this problem.

Can anyone reproduce this?

Comments

toemaz’s picture

I forgot to mention my configuration: I'm using PHP 5.2.0 and MySQL 5.0.38
I will now try to reproduce the problem on a MySQL 4.1

toemaz’s picture

The same problem with mysql 4.1.10, but I think I might have found the problem: $_GLOBALS['db_type'] is empty in the copyright_update_5 function, so there is no switch.

This might be a Drupal problem, or it just might be that $_GLOBALS['db_type'] can not be called from update functions.

Robrecht Jacques’s picture

Status: Active » Fixed

The problem is that I needed to use $GLOBALS instead of $_GLOBALS. Idiotic typo, sorry about that.

Please try 5.x-1.2.

Note that you need to run the update.php again.

If you upgrade from 5.x-1.0 update script #5 will now correctly create the table.
If you upgrade from 5.x-1.1 (and already run update script #5), update script #6 will create the table if it wasn't created before.

ksoonson’s picture

hey... what a coincidence...

I just installed 1.1 and had the same problem (table not created) and as soon as I go to update status page(a module which automatically checks new contrib module release), I found that 1.2 is released. :-)

toemaz’s picture

Just the way it should be: fast reviewing, fast fix, fast redeployment. Well done.

Anonymous’s picture

Status: Fixed » Closed (fixed)