From 04c6b865b4b6223a7c9f255ec0925a7aeed52a17 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Tue, 17 Mar 2020 22:16:12 +0800 Subject: [PATCH] update sql --- database/install.sql | 7 +++++-- database/update.sql | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/database/install.sql b/database/install.sql index 3e1168a0..f4937334 100644 --- a/database/install.sql +++ b/database/install.sql @@ -87,6 +87,7 @@ CREATE TABLE `v2_order` ( `discount_amount` int(11) DEFAULT NULL, `surplus_amount` int(11) DEFAULT NULL COMMENT '剩余价值', `refund_amount` int(11) DEFAULT NULL COMMENT '退款金额', + `balance_amount` int(11) DEFAULT NULL COMMENT '使用余额', `status` tinyint(1) NOT NULL DEFAULT '0', `commission_status` tinyint(1) NOT NULL DEFAULT '0', `commission_balance` int(11) NOT NULL DEFAULT '0', @@ -125,11 +126,13 @@ CREATE TABLE `v2_server` ( `host` varchar(255) NOT NULL, `port` int(11) NOT NULL, `server_port` int(11) NOT NULL, + `tls` tinyint(4) NOT NULL DEFAULT '0', `tags` varchar(255) DEFAULT NULL, `rate` varchar(11) NOT NULL, `network` varchar(11) NOT NULL, + `settings` text, + `rules` text, `networkSettings` text, - `tls` tinyint(4) NOT NULL DEFAULT '0', `tlsSettings` text, `ruleSettings` text, `show` tinyint(1) NOT NULL DEFAULT '0', @@ -240,4 +243,4 @@ CREATE TABLE `v2_user` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- 2020-03-10 05:37:35 +-- 2020-03-17 14:16:01 diff --git a/database/update.sql b/database/update.sql index 7c91a338..4c2d761d 100644 --- a/database/update.sql +++ b/database/update.sql @@ -197,3 +197,6 @@ CHANGE `network` `network` varchar(11) COLLATE 'utf8_general_ci' NOT NULL AFTER CHANGE `networkSettings` `networkSettings` text COLLATE 'utf8_general_ci' NULL AFTER `network`, CHANGE `tls` `tls` tinyint(4) NOT NULL DEFAULT '0' AFTER `networkSettings`, ADD `tlsSettings` text COLLATE 'utf8_general_ci' NULL AFTER `tls`; + +ALTER TABLE `v2_order` +ADD `balance_amount` int(11) NULL COMMENT '使用余额' AFTER `refund_amount`;