title: Wordpress dbdelta: no errors, no results, no response
body: <p>I am trying to create a Wordpress plugin. The code for setting up the database tables will be provided shortly. However the problem I'm facing is not not an error as much as a lack thereof. No matter what I do, dbdelta seems to do absolutely nothing - and wordpress will not generate any relevant error to at least give me a clue on what's going wrong.</p>
  
  <p>The code is:</p>
  
  <pre><code>function create_tables()
  {
      global $wpdb;
      $pl_nm = VSystem::$plugin_name;
      $create_voters = "create table if not exists {$wpdb-&gt;prefix}{$pl_nm}_voters(
          ID bigint(20) unsigned auto_increment,
          user_id bigint(20) unsigned not null,
          primary key  (ID),
          foreign key (user_id) references {$wpdb-&gt;prefix}users(ID)
      );";
  
      $create_links = "create table if not exists {$wpdb-&gt;prefix}{$pl_nm}_links(
          ID bigint(20) unsigned auto_increment,
          product bigint(20) unsigned,
          name varchar(256) not null,
          url varchar(512) not null,
          description text,
          posted datetime,
          poster bigint(20) unsigned not null,
          primary key  (ID),
          foreign key (poster) references {$wpdb-&gt;prefix}users(ID)
      );";
  
      $create_votes = "create table if not exists {$wpdb-&gt;prefix}{$pl_nm}_votes(
          ID bigint(20) unsigned auto_increment,
          link_id bigint(20) unsigned not null,
          voter_id bigint(20) unsigned not null,
          choice int not null,
          primary key  (ID),
          foreign key (link_id) references {$wpdb-&gt;prefix}{$pl_nm}_links(ID),
          foreign key (voter_id) references {$wpdb-&gt;prefix}users(ID)
      );";
      require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
      dbDelta( $create_voters );
      dbDelta( $create_links );
      dbDelta( $create_votes );
      dbDelta("asdasdsadsad");
      //wp_die("{$wpdb-&gt;prefix}{$pl_nm}");
  
  
  
      add_option('db_version', VSystem::$defaults['db_version']);
  }
  
  function vsystem_install()
  {
      create_tables();
  }
  </code></pre>
  
  <p>Now I know this function is being called at least because uncommenting the wp_die command acts as it is supposed to. Can I get any help?</p>
  
  <pre><code>    dbDelta("asdasdsadsad");
  </code></pre>
  
  <p>Not even that seems to generate any kind of response. I might be able to do this on my own if someone could tell me how to get dbdelta to do anything.</p>