forked from apolloconfig/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,10 @@ CREATE TABLE `Users` ( | |
`Id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增Id', | ||
`Username` varchar(64) NOT NULL DEFAULT 'default' COMMENT '用户名', | ||
`Password` varchar(64) NOT NULL DEFAULT 'default' COMMENT '密码', | ||
`Email` varchar(64) NOT NULL DEFAULT 'default' COMMENT '邮箱地址', | ||
`Enabled` tinyint(4) DEFAULT NULL COMMENT '是否有效', | ||
PRIMARY KEY (`Id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表'; | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表'; | ||
|
||
CREATE TABLE `Authorities` ( | ||
`Id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增Id', | ||
|
@@ -17,8 +18,8 @@ CREATE TABLE `Authorities` ( | |
PRIMARY KEY (`Id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
|
||
INSERT INTO `Users` (`Username`, `Password`, `Enabled`) | ||
INSERT INTO `Users` (`Username`, `Password`, `Email`, `Enabled`) | ||
VALUES | ||
('apollo', '$2a$10$7r20uS.BQ9uBpf3Baj3uQOZvMVvB1RN3PYoKE94gtz2.WAOuiiwXS', 1); | ||
('apollo', '$2a$10$7r20uS.BQ9uBpf3Baj3uQOZvMVvB1RN3PYoKE94gtz2.WAOuiiwXS', '[email protected]', 1); | ||
|
||
INSERT INTO `Authorities` (`Username`, `Authority`) VALUES ('apollo', 'ROLE_user'); |