You should have already followed the Updating custom table structure on plugin upgrade recipe to have a custom table in place with the required structure. Alternatively, you can get the resulting code (Chapter 8/ch8-bug-tracker/ch8-bug-tracker-v2.php) from the code bundle and rename the file ch8-bug-tracker.php.