Incorrect row format found in your database after update to 31.0.2

try this thread Upgrade to Nextcloud Hub 10 (31.0.0) Incorrect row format found in your database - #10 by wivaku

there’s a script marked as the solution that you might find useful. be sure to backup your machine or database at least before running it.