From d860daf6e52d7cc07babe336fe88874d089ddb28 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Oct 2025 22:39:15 +0000 Subject: [PATCH] Fix syntax error and update default status value in module.php Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- modules/billing/module.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/billing/module.php b/modules/billing/module.php index fd1fe7bc..2f285b58 100644 --- a/modules/billing/module.php +++ b/modules/billing/module.php @@ -114,7 +114,7 @@ $install_queries[2] = array( "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` DROP `home_path`;", "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` DROP `paid`;", "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `home_id` varchar(255) NOT NULL DEFAULT '0';", - "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `status` varchar(16) NOT NULL DEFAULT '0';", + "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `status` varchar(16) NOT NULL DEFAULT 'unknown';", "ALTER TABLE `".OGP_DB_PREFIX."billing_carts` ADD `date` varchar(16) NOT NULL DEFAULT '0';", "ALTER TABLE `".OGP_DB_PREFIX."billing_carts` ADD `tax_amount` varchar(16) NOT NULL DEFAULT '0';", "ALTER TABLE `".OGP_DB_PREFIX."billing_carts` ADD `currency` varchar(3) NOT NULL DEFAULT '0';" @@ -126,8 +126,8 @@ $install_queries[3] = array( $install_queries[4] = array( "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `extended` tinyint(1) NOT NULL;", - "ALTER TABLE `".OGP_DB_PREFIX."billing_services` ADD `enabled` int(11) NOT NULL;" - "ALTER TABLE `".OGP_DB_PREFIX."billing_carts` ADD `coupon_id` varchar(3) NOT NULL DEFAULT '0';" + "ALTER TABLE `".OGP_DB_PREFIX."billing_services` ADD `enabled` int(11) NOT NULL;", + "ALTER TABLE `".OGP_DB_PREFIX."billing_carts` ADD `coupon_id` varchar(3) NOT NULL DEFAULT '0';", "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `coupon_id` varchar(3) NOT NULL DEFAULT '0';" );