Closed (fixed)
Project:
Site Network
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2007 at 16:23 UTC
Updated:
26 Aug 2008 at 23:44 UTC
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
Comment #1
brmassa commentedGuys,
fixed on CVS.
regards,
massa
Comment #2
andypostI'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.
Comment #3
brmassa commentedAndrey,
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
Comment #4
andypostSuppose 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
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.