You have to script all the custom stuff and run the scripts after the upgrade. In SQL Manager, right click on the database, choose Tasks, Generate scripts and it will let you pick all your custom objects and script them either with or without the data, and as one script overall or one script per object. When replaying the scripts, do tables, then views, then stored procedures.