i am wondering why in chapter 7 plugin development, the code (snipplet) to uninstall a plugin/database table is:
PHP Code:
//build our query to delete our custom table
$sql = "DROP TABLE " . $table_name . ";";
//execute the query deleting the table
$wpdb->query($sql);
require_once(ABSPATH .’wp-admin/includes/upgrade.php’);
dbDelta($sql);
my question is why run dbDelta after $wpdb->query($sql); it seems to be doing the same thing