From 280b2b2899985b0632286ce15c86a56c4826b891 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 23 Nov 2020 17:13:14 +0800 Subject: [PATCH] 1 --- server/tools/protobuild/cs_proto.proto | 2 ++ sql/relationdb_n.sql | 4 ++++ sql/relationdb_n_migrate_201123_01.sql | 10 ++++++++++ 3 files changed, 16 insertions(+) create mode 100644 sql/relationdb_n_migrate_201123_01.sql diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 65425f5..83d90b3 100644 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -118,6 +118,8 @@ message MFGuildBasic optional string owner_id = 8; //公会队长id optional string owner_name = 9; //公会队长名字 optional string owner_avatar_url = 10; //公会队长头像 + optional int32 owner_vip_lv = 12 [default = 0]; //vip等级 + optional int32 owner_head = 13 [default = 0]; //头像框 optional int32 join_unlimited = 11; //不限制加入 optional int32 join_cond1 = 20; //加入条件1 optional int32 join_cond2 = 21; //加入条件2 diff --git a/sql/relationdb_n.sql b/sql/relationdb_n.sql index d6a9b01..b941858 100644 --- a/sql/relationdb_n.sql +++ b/sql/relationdb_n.sql @@ -112,9 +112,13 @@ CREATE TABLE `guild` ( `owner_id` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '公会主id', `owner_name` tinyblob COMMENT '公会主名字', `owner_avatar_url` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '公会主头像', + `owner_vip_lv` int(11) NOT NULL DEFAULT '0' COMMENT 'owner vip等级', + `owner_head` int(11) NOT NULL DEFAULT '0' COMMENT 'owner 头像框', `creator_id` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '公会创建者id', `creator_name` tinyblob COMMENT '公会创建者名字', `creator_avatar_url` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '公会创建者头像', + `creator_vip_lv` int(11) NOT NULL DEFAULT '0' COMMENT 'creator vip等级', + `creator_head` int(11) NOT NULL DEFAULT '0' COMMENT 'creator 头像框', `guild_data` mediumblob COMMENT '公会数据', `guild_status` int(11) NOT NULL DEFAULT '0' COMMENT '公会状态 0:新建(未确认) 1:已确认 2:已解散', `join_unlimited` int(11) NOT NULL DEFAULT '0' COMMENT '不限制加入', diff --git a/sql/relationdb_n_migrate_201123_01.sql b/sql/relationdb_n_migrate_201123_01.sql new file mode 100644 index 0000000..350351f --- /dev/null +++ b/sql/relationdb_n_migrate_201123_01.sql @@ -0,0 +1,10 @@ +start transaction; + +alter table `guild` add column `owner_vip_lv` int(11) NOT NULL DEFAULT '0' COMMENT 'owner vip等级'; +alter table `guild` add column `owner_head` int(11) NOT NULL DEFAULT '0' COMMENT 'owner 头像框'; +alter table `guild` add column `creator_vip_lv` int(11) NOT NULL DEFAULT '0' COMMENT 'creator vip等级'; +alter table `guild` add column `creator_head` int(11) NOT NULL DEFAULT '0' COMMENT 'creator 头像框'; + +insert into version (version) values(2020112301); + +commit;