prefix . "hesabix"; $charset_collate = $wpdb->get_charset_collate(); $sql = " CREATE TABLE $table_name ( id int(11) UNSIGNED NOT NULL AUTO_INCREMENT, obj_type varchar(32) NOT NULL, id_hesabix int(11) UNSIGNED NOT NULL, id_ps int(11) UNSIGNED NOT NULL, id_ps_attribute int(11) UNSIGNED NOT NULL DEFAULT 0, uid_hesabix int(11) UNSIGNED NOT NULL, PRIMARY KEY (id) ) $charset_collate;"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($sql); update_option('hesabix_db_version', self::$hesabix_db_version); } }