For people to be able to migrate from drupal.module to site_network, site_network module should have an update function. site_network_update_1() already covers variables, but the authmap table should also be updated to inform Drupal that site_network handles the previously drupal.module managed authentication. Sample code:

UPDATE {authmap} SET module = 'site_network' WHERE module = 'drupal';

From looking around the code I think this should be enough.

Comments

brmassa’s picture

Status: Active » Fixed

Guys,

fixed on CVS.

regards,

massa

andypost’s picture

Version: » 6.x-1.0
Status: Fixed » Postponed

I'm tried this and suppose there's error site_network_update_6001 is not running on main update maybe because number 6001 not 6000.
To work it properly I start update.php and choose 6001 update against site_network module.

brmassa’s picture

Status: Postponed » Fixed

Andrey,

its not working but its not the reason. the problem is that site_network_update_6000 is an update for module Site Network, not the old Drupal module. So i need to rename it to drupal_update_6000 or even better: exclude it and include them inside the hook_install.

i will fix it on CVS.

regards,

massa

andypost’s picture

Suppose better to rename it to _6000 or _1 because there's no previous vesions
install should perform only install actions and update search for old configs and other

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.