fix: add_to_cart SQL mismatch, Browse Servers routing, canonical game dedup, OS-aware locations, XML editor improvements
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/aecffd5d-b644-4e4d-b13e-b392e78d4606 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
7ff7adca9d
commit
acbb850e21
6 changed files with 495 additions and 352 deletions
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
// Module general information
|
||||
$module_title = "billing";
|
||||
$module_version = "3.4";
|
||||
$db_version = 5;
|
||||
$module_version = "3.5";
|
||||
$db_version = 6;
|
||||
$module_required = FALSE;
|
||||
// Module description
|
||||
$module_description = "Billing storefront / provisioning integration. Public ordering runs as a standalone site; panel pages provide provisioning and admin order management.";
|
||||
|
|
@ -386,4 +386,17 @@ $install_queries[5] = array(
|
|||
}
|
||||
);
|
||||
|
||||
?>
|
||||
// -----------------------------------------------------------------------
|
||||
// db_version 6 — Add server_os column to remote_servers for OS-aware
|
||||
// game/service selection in the billing storefront.
|
||||
// Default 'linux' preserves existing behaviour for all current installs.
|
||||
// -----------------------------------------------------------------------
|
||||
$install_queries[6] = array(
|
||||
function($db) {
|
||||
$r = $db->resultQuery("SELECT COUNT(*) AS cnt FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'OGP_DB_PREFIXremote_servers' AND COLUMN_NAME = 'server_os'");
|
||||
if ($r && isset($r[0]['cnt']) && (int)$r[0]['cnt'] > 0) return true;
|
||||
return (bool)$db->query("ALTER TABLE `OGP_DB_PREFIXremote_servers` ADD `server_os` ENUM('linux','windows','any') NOT NULL DEFAULT 'linux' AFTER `display_public_ip`");
|
||||
}
|
||||
);
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue