A major reason, why I not yet migrated to D6 is that the update process of the biblio module didn't work satisfactorily. Much of my previous customized configuration was lost. I looked for quite a while into the update functions in biblio_install and found the reason:
While the config is updated in 6000 using the old fids (including 2,3,4 for secondary, tertiary authors etc.) you remove the complete biblio_fields table in 6008, rebuilding it from scratch using the csv files. However, this has shifted all fids, removing those for secondary authors. Hence the new fids do not match the data in biblio_field_type anymore. I guess you have a quite complicated update process. I've chosen a very simple solution: rewriting the update code from scratch, summarizing all updates from 6000-6010 into 6000. Although I'm quite confident, that the update path from 5.x works nice now, I'm not sure whether the update from some early 6.x betas is broken now...
Nevertheless for your information, the appropriate patch is attached.
Robert
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | biblio.upgrade.patch | 4.87 KB | rhaschke |
| #3 | biblio.upgrade.patch | 15.34 KB | rhaschke |
| biblio.upgrade.patch | 13.85 KB | rhaschke |
Comments
Comment #1
rjerome commentedThanks Robert,
This is why it's good to have more than one set of eyes on the code. I have to admit that I never even noticed that I was blowing that table with the old data in it. I'll see what effect this has on the beta versions.
Ron.
Comment #2
rjerome commentedRobert,
I tested your patch and it works great. I must say you've raised the SQL bar pretty high with things like this...
I'm still trying to decipher it.
Comment #3
rhaschke commentedI like the strength of SQL ;-)
In the attached patch I added some more comments to explain the sub queries. Hopefully this eases understanding.
Comment #4
rhaschke commentedI just have seen, that you already integrated my install patch into the CVS HEAD. So here is a patch containing the additional comments, which works against the current CVS HEAD.
Comment #5
rjerome commentedApplied patch in #4.