From ec9cde55b626c4487f2c9d1dcfce8ebe0b9944ab Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 30 Apr 2021 11:21:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=92=E8=89=B2=E8=A1=A8=E5=88=A0?= =?UTF-8?q?=E9=99=A4code=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/db/migration/V8__system.sql | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/src/main/resources/db/migration/V8__system.sql b/backend/src/main/resources/db/migration/V8__system.sql index b47ade1e48..f04fdeaf6c 100644 --- a/backend/src/main/resources/db/migration/V8__system.sql +++ b/backend/src/main/resources/db/migration/V8__system.sql @@ -151,7 +151,6 @@ SET FOREIGN_KEY_CHECKS = 1; DROP TABLE IF EXISTS `sys_role`; CREATE TABLE `sys_role` ( `role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID', - `code` varchar(100) NOT NULL COMMENT '代码', `name` varchar(255) NOT NULL COMMENT '名称', `description` varchar(255) DEFAULT NULL COMMENT '描述', `create_by` varchar(255) DEFAULT NULL COMMENT '创建者', @@ -161,19 +160,18 @@ CREATE TABLE `sys_role` ( PRIMARY KEY (`role_id`) USING BTREE, UNIQUE KEY `uniq_name` (`name`), KEY `role_name_index` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='角色表'; +) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='角色表'; -- ---------------------------- -- Records of sys_role -- ---------------------------- BEGIN; -INSERT INTO `sys_role` VALUES (3, 'admin', '管理员', NULL, NULL, NULL, NULL, NULL); -INSERT INTO `sys_role` VALUES (4, 'emp', '普通员工', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `sys_role` VALUES (3, '管理员', 'www', NULL, NULL, NULL, 1619685033918); +INSERT INTO `sys_role` VALUES (4, '普通员工', 'ceshi', NULL, NULL, NULL, 1619684053527); COMMIT; SET FOREIGN_KEY_CHECKS = 1; - -- ---------------------------- -- Table structure for sys_roles_menus -- ----------------------------