Messed up Installation of Dolibarr 21 using DoliDeb

I had Dolibarr 20.0.3 installed, and wanted to upgrade to 21.0.0. I used the Dolideb installation method.

However after downloading and running the 21.0.0 deb, it appears my database has been wiped clean. It also displayed some errors related to creation of database tables during the installation. I am not sure the steps to take in order to restore the database and fix the broken install. I cannot login as it displays the following

image

I was able to solve it by visiting

http://localhost/dolibarr/install/ and re-doing the upgrade from 20.x to 21.x

Some personalization options were lost but the database was successfully recovered.