feat: admin billing integration + migrate system (replaces clone)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/8940e39d-4aaa-4154-874b-74ab24d74da3 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
4db784a84a
commit
9d1999f374
8 changed files with 506 additions and 5 deletions
13
modules/user_games/admin_billing_migration.sql
Normal file
13
modules/user_games/admin_billing_migration.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- Admin Billing Integration Migration
|
||||
-- Run this once to add required columns to billing_orders.
|
||||
-- All statements use IF NOT EXISTS so the file is safe to re-run.
|
||||
|
||||
-- Mark orders that were created by an admin (not paid via checkout)
|
||||
ALTER TABLE `gsp_billing_orders`
|
||||
ADD COLUMN IF NOT EXISTS `created_by_admin` TINYINT(1) NOT NULL DEFAULT 0
|
||||
COMMENT 'Set to 1 when an admin manually created this server via the panel';
|
||||
|
||||
-- Track whether an order is a renewal/extension (already referenced by create_servers.php)
|
||||
ALTER TABLE `gsp_billing_orders`
|
||||
ADD COLUMN IF NOT EXISTS `extended` TINYINT(1) NOT NULL DEFAULT 0
|
||||
COMMENT 'Set to 1 when this order is a renewal of an existing server';
|
||||
Loading…
Add table
Add a link
Reference in a new issue