title: Wordpress plugin activation creating table
body: <p>I am trying to create a table with my wordpress plugin on activation. I have this and it is not working:</p>
  
  <pre><code>function activate_cron() {
      global $wpdb;
  
      $charset_collate = $wpdb-&gt;get_charset_collate();
      $table_name = $wpdb-&gt;prefix . "fbcron";
  
      $sql = "CREATE TABLE ".$table_name." (
      id int(11) NOT NULL AUTO_INCREMENT,
      post_id int(11) NOT NULL,
      PRIMARY KEY  (id)
      ) ".$charset_collate.";";
  
      require_once( '../../../wp-admin/includes/upgrade.php' );
      dbDelta($sql);
  }
  
  register_activation_hook( __FILE__, 'activate_cron' );
  </code></pre>