Fixed: upgrade file sql