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:
copilot-swe-agent[bot] 2026-04-30 20:54:08 +00:00 committed by GitHub
parent 4db784a84a
commit 9d1999f374
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 506 additions and 5 deletions

View 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';