From 6aeaf4aa49aa2017cb023d9a0ac98366e3c49e84 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 26 Feb 2021 11:44:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4adm?= =?UTF-8?q?in=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/db/migration/V8__system.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/main/resources/db/migration/V8__system.sql b/backend/src/main/resources/db/migration/V8__system.sql index afb7201c61..0698ba1daa 100644 --- a/backend/src/main/resources/db/migration/V8__system.sql +++ b/backend/src/main/resources/db/migration/V8__system.sql @@ -89,6 +89,10 @@ CREATE TABLE IF NOT EXISTS `sys_user` ( KEY `inx_enabled` (`enabled`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='系统用户'; +BEGIN; +INSERT INTO `sys_user` VALUES (4, 0, 'admin', '管理员', NULL, NULL, NULL, '123456', b'1', 1, NULL, NULL, NULL, NULL, NULL); +COMMIT; + CREATE TABLE IF NOT EXISTS `sys_users_roles` ( `user_id` bigint(20) NOT NULL COMMENT '用户ID',