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
d5a9c5fe
Commit
d5a9c5fe
authored
Feb 10, 2017
by
张乐
Committed by
GitHub
Feb 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #538 from nobodyiam/delta-sql
add delta schema to upgrade db from v0.4.0 to v0.5.0
parents
5550bd10
ddc9d899
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
apolloconfigdb-v040-v050.sql
scripts/sql/delta/v040-v050/apolloconfigdb-v040-v050.sql
+12
-0
apolloportaldb-v040-v050.sql
scripts/sql/delta/v040-v050/apolloportaldb-v040-v050.sql
+8
-0
No files found.
scripts/sql/delta/v040-v050/apolloconfigdb-v040-v050.sql
0 → 100644
View file @
d5a9c5fe
#
delta
schema
to
upgrade
apollo
config
db
from
v0
.
4
.
0
to
v0
.
5
.
0
Use
ApolloConfigDB
;
DROP
TABLE
`Privilege`
;
ALTER
TABLE
`Release`
DROP
`Status`
;
ALTER
TABLE
`Namespace`
ADD
KEY
`IX_NamespaceName`
(
`NamespaceName`
(
191
));
ALTER
TABLE
`Cluster`
ADD
KEY
`IX_ParentClusterId`
(
`ParentClusterId`
);
ALTER
TABLE
`AppNamespace`
ADD
KEY
`IX_AppId`
(
`AppId`
);
ALTER
TABLE
`App`
DROP
INDEX
`Name`
;
ALTER
TABLE
`App`
ADD
KEY
`Name`
(
`Name`
);
\ No newline at end of file
scripts/sql/delta/v040-v050/apolloportaldb-v040-v050.sql
0 → 100644
View file @
d5a9c5fe
#
delta
schema
to
upgrade
apollo
portal
db
from
v0
.
4
.
0
to
v0
.
5
.
0
Use
ApolloPortalDB
;
ALTER
TABLE
`AppNamespace`
ADD
KEY
`IX_AppId`
(
`AppId`
);
ALTER
TABLE
`App`
DROP
INDEX
`Name`
;
ALTER
TABLE
`App`
ADD
KEY
`Name`
(
`Name`
);
\ No newline at end of file
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