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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | update.tar.gz | 7.69 KB | bengen |
Comments
Comment #1
bengen commentedThe 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?
Comment #2
coreb commentedMoving out of the x.y.z queue into 6.x-dev.
Sympal Scripts may satisfy this.
Comment #3
pasqualleComment #4
berdirDrush++
(Sorry for pinging the participants, I'm trying to clean up a few old
issues)