Looks like step 37 and 39 are duplicates:
ALTER TABLE w3t_Posts
DROP INDEX w3tPostsindex2
Actually 39 isn't a duplicate, the DROP INDEX line is:
DROP INDEX w3tPostsindex2
???
Should that be the same as step 37's:
DROP INDEX {$config['tbprefix']}Postsindex2
?