If you follow the instructions on the http://codex.ww.wp.xz.cn/Creating_Tables_with_Plugins page, there are two issues with it:
1) In the “The Whole Function” section, the first line of the code block needs to explicitly declare $jal_db_version as global. So the very first line of the block should be:
global $jal_db_version;
2) The dbDelta function causes a fatal error – the now infamous “cannot redeclare function xxxx” error that so many folks are having trouble with when trying to use this code. Remove this line:
dbDelta($sql);
and replace it with:
$wpdb->query($sql);
and the code will work properly.
NOTE: I’m using WP 3.0
I’m having the same issue as well, and I’m also using the Carrington framework (like timsainb). In my case, it’s Carrington JAM 1.3 and WP 2.8.4. This is the second site that I’ve done with Carrington that’s had me pulling my hair out over this particular issue.