Active
Project:
vBulletin (and Photopost) to Drupal
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2011 at 16:51 UTC
Updated:
5 May 2011 at 21:47 UTC
*_ADD_TO_IDS constants make for module inter-dependency and a requirement for developers to look at other modules' internals to work out what their version should be. These constants really need to die in a fire.
Replace them with an API in vbimportapi.module that:
- finds greatest of all ids in Drupal importee tables (beware edge case of non-core tables not being accounted for),
- multiplies that by ten (creates padding, just in case),
- takes into account that other imports may be running concurrently (so number of records to be imported will have to be taken into consideration),
- stores this,
- tells the module what to add to ids.
Comments
Comment #1
liam mcdermott commentedJust a note, this caused: #1060746: Delete removes ALL nodes