Doctype rests after upgrade

hi guys, after upgrading th todo doctype form resets n many others too… n i lose all custom fields…
how to upgrade with no loss of custom fields ?

pls help