In order to be able to update Drupal from the commanline (that is what for example the Debian package needs to do) you have to copy quite a few functions from bootstrap.inc into the external update script.
The reason for this is that Drupal immediately wants to open a session which does not work if you have to create some tables manually. the functions that need to be copied are:
check_query, drupal_unpack, cache_*, variable_*, conf_init

We shoul dseek for a better solution.

CommentFileSizeAuthor
#1 update.tar.gz7.69 KBbengen

Comments

bengen’s picture

StatusFileSize
new7.69 KB

The problem with updating to 4.5 or CVS from 4.4 or before is that upgrade.php includes bootstrap.inc which attempts to open a session. Of course, this will fail if the user_roles table does not exist. A session is only needed in update.php if it needs admin rights.

The attached tarfile includes a new file core.inc and patches against update.php, bootstrap.inc: All(?) functionality needed for the actual updates are moved to core.inc

Comments?

coreb’s picture

Version: x.y.z » 6.x-dev
Category: task » feature

Moving out of the x.y.z queue into 6.x-dev.

Sympal Scripts may satisfy this.

pasqualle’s picture

Version: 6.x-dev » 7.x-dev
berdir’s picture

Status: Active » Closed (won't fix)

Drush++

(Sorry for pinging the participants, I'm trying to clean up a few old
issues)