prefix . esc_attr("advwl_wishlist_items"); $advwl_charset = $wpdb->get_charset_collate(); $advwl_sql_items = "CREATE TABLE IF NOT EXISTS $advwl_table ( `ID` bigint(20) NOT NULL AUTO_INCREMENT, `wishlist_id` bigint(20) DEFAULT NULL, `user_id` bigint(20) DEFAULT NULL, `prod_id` bigint(20) NOT NULL, `quantity` int(11) NOT NULL, `prod_org_price` decimal(9,3) DEFAULT NULL, `prod_org_currency` char(3) CHARACTER SET utf8 DEFAULT NULL, `prod_dateadded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `pro_exists` int(11) NOT NULL, `temp_user_data` VARCHAR(255) NOT NULL, PRIMARY KEY (`ID`) ) $advwl_charset;"; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta($advwl_sql_items); } } ?>