From 6e7c224109fb88599f9e4d7dd51e3ed4fc815cbe Mon Sep 17 00:00:00 2001 From: wangliwen Date: Fri, 12 Aug 2022 16:29:48 +0800 Subject: [PATCH] sql --- .../src/main/resources/db/V4.6__gateway_add_table.sql | 10 ++++++++++ ...resource_add_col.sql => V4.7__resource_add_col.sql} | 0 2 files changed, 10 insertions(+) create mode 100644 renren-admin/src/main/resources/db/V4.6__gateway_add_table.sql rename renren-admin/src/main/resources/db/{V4.6__resource_add_col.sql => V4.7__resource_add_col.sql} (100%) diff --git a/renren-admin/src/main/resources/db/V4.6__gateway_add_table.sql b/renren-admin/src/main/resources/db/V4.6__gateway_add_table.sql new file mode 100644 index 00000000..036be543 --- /dev/null +++ b/renren-admin/src/main/resources/db/V4.6__gateway_add_table.sql @@ -0,0 +1,10 @@ +DROP TABLE IF EXISTS `t_api_count_history`; +CREATE TABLE `t_api_count_history` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `version` bigint COMMENT '数据版本号,从0递增', + `current_count`bigint COMMENT '当前总数,只有最新一条有效', + `history_count`bigint COMMENT '保存历史重启的数量', + `create_time` datetime NULL DEFAULT NULL, + `update_time` datetime NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB COMMENT = '网关历史调用总数'; diff --git a/renren-admin/src/main/resources/db/V4.6__resource_add_col.sql b/renren-admin/src/main/resources/db/V4.7__resource_add_col.sql similarity index 100% rename from renren-admin/src/main/resources/db/V4.6__resource_add_col.sql rename to renren-admin/src/main/resources/db/V4.7__resource_add_col.sql