[Schevo-devel] Databases corrupted after upgrade

Tom Locke tom at livelogix.com
Thu Dec 15 06:47:35 EST 2005


update - I also realised that (yesterday) I foolishly renamed a link 
field without making any attempt to move the current values into the new 
field

On PhoneNumber, I changed

 person = f.entity("Person", backlink="phone_numbers")

(That backlink is my own meta-data -- I'm allowed to add any keyword 
args I like right? And they show up as attributes on the field-spec)

To

 owner = f.entity("Person", "Home", backlink="phone_numbers")

So obviously that broke all my links from PhoneNumbers to People

The problem was definately related to PhoneNumbers -- I got this from 
the postmortem (same stacktrace as previous message):

    608                 links += len(btree.keys()) # XXX: Optimization 
opportunity.
    609             else:
--> 610                 other_field_name = 
other_extent_map['field_id_name'][
    611                     other_field_id]
    612                 if specific_extent_name:


(mydb) other_extent_map['field_id_name'].items()
   [7]:[(1780862595, 'number'), (1415818972, 'name'), (1046419437, 'owner')]

(those are the field names from PhoneNumber)

Tom.



More information about the Schevo-devel mailing list