From fae83ab0e5842fc667cca2dce1fa5736c3dce772 Mon Sep 17 00:00:00 2001 From: v2board Date: Wed, 8 Mar 2023 14:18:27 +0800 Subject: [PATCH] update: add hysteria --- database/install.sql | 26 +++++++++++++++++++++++++- database/update.sql | 23 +++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/database/install.sql b/database/install.sql index 577b0b14..b5eef6ae 100644 --- a/database/install.sql +++ b/database/install.sql @@ -195,6 +195,30 @@ CREATE TABLE `v2_server_group` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +DROP TABLE IF EXISTS `v2_server_hysteria`; +CREATE TABLE `v2_server_hysteria` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `group_id` varchar(255) NOT NULL, + `route_id` varchar(255) DEFAULT NULL, + `name` varchar(255) NOT NULL, + `parent_id` int(11) DEFAULT NULL, + `host` varchar(255) NOT NULL, + `port` varchar(11) NOT NULL, + `server_port` int(11) NOT NULL, + `tags` varchar(255) DEFAULT NULL, + `rate` varchar(11) NOT NULL, + `show` tinyint(1) NOT NULL DEFAULT '0', + `sort` int(11) DEFAULT NULL, + `up_mbps` int(11) NOT NULL, + `down_mbps` int(11) NOT NULL, + `server_name` varchar(64) DEFAULT NULL, + `insecure` tinyint(1) NOT NULL DEFAULT '0', + `created_at` int(11) NOT NULL, + `updated_at` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + + DROP TABLE IF EXISTS `v2_server_route`; CREATE TABLE `v2_server_route` ( `id` int(11) NOT NULL AUTO_INCREMENT, @@ -398,4 +422,4 @@ CREATE TABLE `v2_user` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- 2023-03-07 13:10:15 +-- 2023-03-08 06:17:49 diff --git a/database/update.sql b/database/update.sql index 8a7f23ab..6fe74248 100644 --- a/database/update.sql +++ b/database/update.sql @@ -657,3 +657,26 @@ ALTER TABLE `v2_server_v2ray` ALTER TABLE `v2_server_vmess` CHANGE `network` `network` varchar(11) COLLATE 'utf8mb4_general_ci' NOT NULL AFTER `rate`; + +DROP TABLE IF EXISTS `v2_server_hysteria`; +CREATE TABLE `v2_server_hysteria` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `group_id` varchar(255) NOT NULL, + `route_id` varchar(255) DEFAULT NULL, + `name` varchar(255) NOT NULL, + `parent_id` int(11) DEFAULT NULL, + `host` varchar(255) NOT NULL, + `port` varchar(11) NOT NULL, + `server_port` int(11) NOT NULL, + `tags` varchar(255) DEFAULT NULL, + `rate` varchar(11) NOT NULL, + `show` tinyint(1) NOT NULL DEFAULT '0', + `sort` int(11) DEFAULT NULL, + `up_mbps` int(11) NOT NULL, + `down_mbps` int(11) NOT NULL, + `server_name` varchar(64) DEFAULT NULL, + `insecure` tinyint(1) NOT NULL DEFAULT '0', + `created_at` int(11) NOT NULL, + `updated_at` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;