11--
2- -- Copyright 2024 Apollo Authors
2+ -- Copyright 2023 Apollo Authors
33--
44-- Licensed under the Apache License, Version 2.0 (the "License");
55-- you may not use this file except in compliance with the License.
2121/* !40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */ ;
2222/* !40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */ ;
2323
24- --
25- -- ===============================================================================
26- -- == ==
27- -- == Generated from 'scripts/sql/src/' ==
28- -- == by running 'mvn compile -pl apollo-build-sql-converter -Psql-converter'. ==
29- -- == DO NOT EDIT !!! ==
30- -- == ==
31- -- ===============================================================================
32- --
33- --
34- -- Create Database
35- -- ------------------------------------------------------------
24+ # Create Database
25+ # ------------------------------------------------------------
3626CREATE DATABASE IF NOT EXISTS ApolloPortalDB DEFAULT CHARACTER SET = utf8mb4;
3727
3828Use ApolloPortalDB;
@@ -427,12 +417,13 @@ CREATE TABLE `AuditLogDataInfluence` (
427417 KEY ` IX_EntityId` (` InfluenceEntityId` )
428418) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COMMENT= ' 审计日志数据变动表' ;
429419
430- -- Config
431- -- ------------------------------------------------------------
420+
421+ # Config
422+ # ------------------------------------------------------------
432423INSERT INTO ` ServerConfig` (` Key` , ` Value` , ` Comment` )
433424VALUES
434425 (' apollo.portal.envs' , ' dev' , ' 可支持的环境列表' ),
435- (' organizations' , ' [{"orgId": "TEST1", "orgName": "样例部门1"},{"orgId": "TEST2", "orgName": "样例部门2"}]' , ' 部门列表' ),
426+ (' organizations' , ' [{\ " orgId\" : \ " TEST1\" , \ " orgName\" : \ " 样例部门1\ " },{\ " orgId\" : \ " TEST2\" , \ " orgName\" : \ " 样例部门2\ " }]' , ' 部门列表' ),
436427 (' superAdmin' , ' apollo' , ' Portal超级管理员' ),
437428 (' api.readTimeout' , ' 10000' , ' http接口read timeout' ),
438429 (' consumer.token.salt' , ' someSalt' , ' consumer token salt' ),
@@ -443,19 +434,10 @@ VALUES
443434
444435INSERT INTO ` Users` (` Username` , ` Password` , ` UserDisplayName` , ` Email` , ` Enabled` )
445436VALUES
446- (' apollo' , ' $2a$10$7r20uS.BQ9uBpf3Baj3uQOZvMVvB1RN3PYoKE94gtz2.WAOuiiwXS' , ' apollo' , ' apollo@acme.com' , 1 );
437+ (' apollo' , ' $2a$10$7r20uS.BQ9uBpf3Baj3uQOZvMVvB1RN3PYoKE94gtz2.WAOuiiwXS' , ' apollo' , ' apollo@acme.com' , 1 );
447438
448439INSERT INTO ` Authorities` (` Username` , ` Authority` ) VALUES (' apollo' , ' ROLE_user' );
449440
450- --
451- -- ===============================================================================
452- -- == ==
453- -- == Generated from 'scripts/sql/src/' ==
454- -- == by running 'mvn compile -pl apollo-build-sql-converter -Psql-converter'. ==
455- -- == DO NOT EDIT !!! ==
456- -- == ==
457- -- ===============================================================================
458-
459441# Sample Data
460442# ------------------------------------------------------------
461443INSERT INTO ` App` (` AppId` , ` Name` , ` OrgId` , ` OrgName` , ` OwnerName` , ` OwnerEmail` )
0 commit comments