Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apollo
Commits
cc7b8a68
Commit
cc7b8a68
authored
Dec 26, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add index for table AppNamespace and Cluster
parent
b9057d27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
scripts/sql/apolloconfigdb.sql
scripts/sql/apolloconfigdb.sql
+2
-0
scripts/sql/apolloportaldb.sql
scripts/sql/apolloportaldb.sql
+1
-0
No files found.
scripts/sql/apolloconfigdb.sql
View file @
cc7b8a68
...
@@ -56,6 +56,7 @@ CREATE TABLE `AppNamespace` (
...
@@ -56,6 +56,7 @@ CREATE TABLE `AppNamespace` (
`DataChange_LastModifiedBy`
varchar
(
32
)
DEFAULT
''
COMMENT
'最后修改人邮箱前缀'
,
`DataChange_LastModifiedBy`
varchar
(
32
)
DEFAULT
''
COMMENT
'最后修改人邮箱前缀'
,
`DataChange_LastTime`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
`DataChange_LastTime`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
PRIMARY
KEY
(
`Id`
),
PRIMARY
KEY
(
`Id`
),
KEY
`IX_AppId`
(
`AppId`
),
KEY
`Name_AppId`
(
`Name`
,
`AppId`
),
KEY
`Name_AppId`
(
`Name`
,
`AppId`
),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
)
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用namespace定义'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用namespace定义'
;
...
@@ -101,6 +102,7 @@ CREATE TABLE `Cluster` (
...
@@ -101,6 +102,7 @@ CREATE TABLE `Cluster` (
`DataChange_LastTime`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
`DataChange_LastTime`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
PRIMARY
KEY
(
`Id`
),
PRIMARY
KEY
(
`Id`
),
KEY
`IX_AppId_Name`
(
`AppId`
,
`Name`
),
KEY
`IX_AppId_Name`
(
`AppId`
,
`Name`
),
KEY
`IX_ParentClusterId`
(
`ParentClusterId`
),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
)
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'集群'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'集群'
;
...
...
scripts/sql/apolloportaldb.sql
View file @
cc7b8a68
...
@@ -56,6 +56,7 @@ CREATE TABLE `AppNamespace` (
...
@@ -56,6 +56,7 @@ CREATE TABLE `AppNamespace` (
`DataChange_LastModifiedBy`
varchar
(
32
)
DEFAULT
''
COMMENT
'最后修改人邮箱前缀'
,
`DataChange_LastModifiedBy`
varchar
(
32
)
DEFAULT
''
COMMENT
'最后修改人邮箱前缀'
,
`DataChange_LastTime`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
`DataChange_LastTime`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
PRIMARY
KEY
(
`Id`
),
PRIMARY
KEY
(
`Id`
),
KEY
`IX_AppId`
(
`AppId`
),
KEY
`Name_AppId`
(
`Name`
,
`AppId`
),
KEY
`Name_AppId`
(
`Name`
,
`AppId`
),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
)
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用namespace定义'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用namespace定义'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment