fix(upgrade): use correct table prefixes on river upgrade script

Ref: #7033