Would it make sense for Plugin Manager to add functionality to Upgrade drupal itself?
I think it would be nice, and convenient.

Comments

Antinoo’s picture

+1

Anonymous’s picture

At the moment, that would make me feel quite nervous. A mistake could take out an entire installation.

Anonymous’s picture

Status: Active » Postponed
Antinoo’s picture

JoshuaRogers: "use at your own risk", "please BACKUP files and db before using this", and so on ;-)

However, I'll respect your choice.
About 20 days ago I tried to code it in my own, but I did get permission errors using the ftp_* functions and then I did suspended the work.

I'm going to take a look at plugin_manager source code, to retry to complete it.
If it works, I'll send the source code to you. :-)

Giovanni

Anonymous’s picture

Sounds good. If you get a patch worked up, I'm willing to commit it. Granted, I'll probably append the world's largest WARNING in front of it... :P

dave reid’s picture

Yes, this would be something definately looking into accomplishing if we really wanted to push this module into core itself.

bserem’s picture

+10

I was just discussing this here: http://drupal.org/node/360656
I'm positive to drupal-core being updated from inside itself, and I don't mind you placing 2 pages of warnings! :)

it is a great module the one you are trying to implement, keep up

Anonymous’s picture

I can tell you that this is definitely on my wish list. For what it's worth, it won't stay on "postponed" forever. Only until plugin_manager's stability gets to the point that I would trust it with a full Drupal install. That will probably be another few releases yet.

summit’s picture

Subscribing, interesting in this a lot also!
Greetings, Martijn

DrewMathers’s picture

I think some kind of rollback mechanism would be essential. In case of unrecoverable errors it should automatically roll back within two cron runs unless cancelled. For my own updates, I implement a manual rollback mechanism by installing the new core files in a new directory, then re-point my domain docroot.

espirates’s picture

Wordpress I believe is setup to auto upgrade and does it very well so why shouldn't Drupal have this capability, can't be too difficult if WP can do it.

DrewMathers’s picture

For details of how WordPress does this, see:

http://wordpress.org/extend/plugins/wordpress-automatic-upgrade

Two hightlights of the process are backing up the old installation and disabling/re-enabling contrib modules. Backup could be accomplished with the Backup And Migrate module, and the Contrib_Toggle module can manage the dependencies for disabling contrib modules.

http://drupal.org/project/backup_migrate
http://drupal.org/project/contrib_toggle

alfthecat’s picture

+1

I'd like this too, although it would also be a bit spooky (like Einstein's 'spooky action at a distance') so the rollback mechanism should be very reliable in case of catastrophe resulting from an update.

D7 has a similar feature implemented in core, right? And perhaps the Backup & Migrate + Backup & Migrate Files could offer assistance in the rollback feature....

Anyway, thanks for this module!

DrewMathers’s picture

A core update feature is planned for the new Update Manager module, but the feature has been postponed until D8. You can follow progress at #606592: Allow updating core with the update manager

This may present an opportunity to fill this void either in D7 Plugin Manager or a separate Core Update Manager module.