Sorry about that - wasn't sure what you were asking. I just realized that I did not look at the error totally and missed the ddl table reference. Try the following that I pulled from where I answered another post like this:
Go into your database
and rename ALL of the qtype tables that might exist to
qtype_randomsamatch_options_old, for example. Or make a copy and then
delete. Just make sure that you have a copy of them.
Then
rerun the upgrade, which should complete normally. Then, go back to the
database, and check that all tables were recreated. If any are
missing, rename the old table back to the correct name and you should be
good to go.
Check your installation by making sure that you can open and edit questions of all different question type.