Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
openSource
apollo
Commits
6e690b38
Commit
6e690b38
authored
Dec 22, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize schema
parent
baba0b56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
25 deletions
+2
-25
apolloconfigdb.sql
scripts/sql/apolloconfigdb.sql
+1
-24
apolloportaldb.sql
scripts/sql/apolloportaldb.sql
+1
-1
No files found.
scripts/sql/apolloconfigdb.sql
View file @
6e690b38
...
...
@@ -33,7 +33,7 @@ CREATE TABLE `App` (
PRIMARY
KEY
(
`Id`
),
KEY
`AppId`
(
`AppId`
(
191
)),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
),
FULLTEXT
KEY
`Name`
(
`Name`
)
KEY
`Name`
(
`Name`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用表'
;
...
...
@@ -266,28 +266,6 @@ CREATE TABLE `NamespaceLock` (
#
Dump
of
table
privilege
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`Privilege`
;
CREATE
TABLE
`Privilege`
(
`id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'Name'
,
`PrivilType`
varchar
(
50
)
NOT
NULL
DEFAULT
'default'
COMMENT
'PrivilType'
,
`NamespaceId`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'NamespaceId'
,
`IsDeleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'1: deleted, 0: normal'
,
`DataChange_CreatedBy`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'创建人邮箱前缀'
,
`DataChange_CreatedTime`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`DataChange_LastModifiedBy`
varchar
(
32
)
DEFAULT
''
COMMENT
'最后修改人邮箱前缀'
,
`DataChange_LastTime`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
PRIMARY
KEY
(
`id`
),
KEY
`Name_PrivilType_NamespaceId`
(
`Name`
(
191
),
`PrivilType`
,
`NamespaceId`
),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'权限'
;
#
Dump
of
table
release
#
------------------------------------------------------------
...
...
@@ -303,7 +281,6 @@ CREATE TABLE `Release` (
`NamespaceName`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'namespaceName'
,
`Configurations`
longtext
NOT
NULL
COMMENT
'发布配置'
,
`IsAbandoned`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'是否废弃'
,
`Status`
tinyint
(
4
)
NOT
NULL
DEFAULT
'1'
COMMENT
'发布的状态,0:废弃 1:正常 2:灰度'
,
`IsDeleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'1: deleted, 0: normal'
,
`DataChange_CreatedBy`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'创建人邮箱前缀'
,
`DataChange_CreatedTime`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
...
...
scripts/sql/apolloportaldb.sql
View file @
6e690b38
...
...
@@ -33,7 +33,7 @@ CREATE TABLE `App` (
PRIMARY
KEY
(
`Id`
),
KEY
`AppId`
(
`AppId`
(
191
)),
KEY
`DataChange_LastTime`
(
`DataChange_LastTime`
),
FULLTEXT
KEY
`Name`
(
`Name`
)
KEY
`Name`
(
`Name`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'应用表'
;
...
...
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