- revert back to old fix_row()
authorTony Mack <tmack@cs.princeton.edu>
Wed, 31 Jan 2007 18:56:45 +0000 (18:56 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 31 Jan 2007 18:56:45 +0000 (18:56 +0000)
tools/upgrade-db.py

index 70774dc..7f6dade 100755 (executable)
@@ -145,10 +145,6 @@ def fix_row(row, table_name, table_fields):
                elif row[bwlimit_index].find('kbit') > -1:
                        row[bwlimit_index] = int(row[bwlimit_index].split('kbit')[0]) \
                                             * 1000
-       elif table_name in ['person_keys']:
-               deleted_index = table_fields.index('deleted')
-               if row[deleted_index] == True:
-                       return None
        elif table_name in ['slice_attribute']:
                # modify some invalid foreign keys
                attribute_type_index = table_fields.index('attribute_type_id')