From 6b1f3a73c4c44cbfb899be4d4c9bfa923d9cd6a4 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Sat, 9 Apr 2022 16:08:36 +0800 Subject: [PATCH] update: sql --- database/install.sql | 4 ++-- database/update.sql | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/database/install.sql b/database/install.sql index 92f18754..75176457 100644 --- a/database/install.sql +++ b/database/install.sql @@ -364,8 +364,8 @@ CREATE TABLE `v2_user` ( `uuid` varchar(36) NOT NULL, `group_id` int(11) DEFAULT NULL, `plan_id` int(11) DEFAULT NULL, - `remind_expire` tinyint(4) DEFAULT '0', - `remind_traffic` tinyint(4) DEFAULT '0', + `remind_expire` tinyint(4) DEFAULT '1', + `remind_traffic` tinyint(4) DEFAULT '1', `token` char(32) NOT NULL, `remarks` text, `expired_at` bigint(20) DEFAULT '0', diff --git a/database/update.sql b/database/update.sql index 786717db..d8ff5467 100644 --- a/database/update.sql +++ b/database/update.sql @@ -459,10 +459,6 @@ ALTER TABLE `v2_plan` ALTER TABLE `v2_server` RENAME TO `v2_server_v2ray`; -ALTER TABLE `v2_user` - CHANGE `remind_expire` `remind_expire` tinyint(4) NULL DEFAULT '0' AFTER `plan_id`, - CHANGE `remind_traffic` `remind_traffic` tinyint(4) NULL DEFAULT '0' AFTER `remind_expire`; - ALTER TABLE `v2_payment` ADD `icon` varchar(255) COLLATE 'utf8mb4_general_ci' NULL AFTER `name`;