Add upgrade script

Signed-off-by: Ajax Chai <ajaxchai@gmail.com>