- It appears as though you’re altering the
users
table – this is a WordPress core table (if using thewp_
prefix) and this is probably not a good idea – create a separate table with anID
foreign key to avoid potential problems. - Use
$wpdb->prefix
to get the prefix that’s actually being used on a given WordPress installation (you can’t depend upon it beingwp_
, it’s configurable) -
dbDelta()
is very particular but it should accept a default value; assign the results ofdbDelta()
to a variable to see what’s happening:$result = dbDelta($game_1); var_dump( $result );