Thread:Project:Support desk/Database error in upgrading from 1.18 to 1.22/reply (9)

Always follow the information on page Upgrade. This is the most up to date upgrade guide and it contains all the things you need to know. I have just added the information about interfering RewriteRules there as well.