Fix a problem with the sqlite upgrade schema.