fix: 增加dev命名空间
parent
170d163323
commit
3492028619
|
@ -13,6 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
SET NAMES utf8mb4;
|
||||||
|
|
||||||
/******************************************/
|
/******************************************/
|
||||||
/* 表名称 = config_info */
|
/* 表名称 = config_info */
|
||||||
|
@ -220,8 +221,14 @@ CREATE TABLE `permissions`
|
||||||
UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING BTREE
|
UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING BTREE
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- # dev 命名空间
|
||||||
|
INSERT INTO tenant_info(id, kp, tenant_id, tenant_name, tenant_desc, create_source, gmt_create, gmt_modified)
|
||||||
|
VALUES (1, '1', 'dev', 'dev', '开发环境', NULL, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||||
|
|
||||||
|
-- # 账号密码: nacos/nacos
|
||||||
INSERT INTO users (username, password, enabled)
|
INSERT INTO users (username, password, enabled)
|
||||||
VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', TRUE);
|
VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', TRUE);
|
||||||
|
|
||||||
|
-- # nacos 角色授权
|
||||||
INSERT INTO roles (username, role)
|
INSERT INTO roles (username, role)
|
||||||
VALUES ('nacos', 'ROLE_ADMIN');
|
VALUES ('nacos', 'ROLE_ADMIN');
|
Loading…
Reference in New Issue