Plugin Building - Generic SQL Error (Install Function)
0
163
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

1 participant


Plugin Building - Generic SQL Error (Install Function)
Plugin Building - Generic SQL Error (Install Function)

Upon trying to activate an in progress plugin (literally this is the only thing there at the moment) I get a generic in SQL error with no information. Nothing to be found in my error.log and all of that is set up as suggested in the error messages documentation.

I'm not sure where I went wrong here. Any ideas why this is happening?

function wcc_connections_install() {
    global $db;
    // quick build create table collation reference
    $bctcref = $db->build_create_table_collation();
    // CREATE TABLE
    $db->write_query("
        CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX . "connections (
            id int NOT NULL AUTO_INCREMENT,
            uid int NOT NULL AUTO_INCREMENT,
            cuid int NOT NULL AUTO_INCREMENT,
            title varchar(100) NOT NULL DEFAULT '',
            description varchar(500) NOT NULL DEFAULT '',
            PRIMARY KEY (id)
        ) ENGINE=MyISAM{$bctcref}
    ";
}


https://community.mybb.com/thread-238445.html

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.

Forum Jump:


Users browsing this thread:
1 Guest(s)