forked from apolloconfig/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request apolloconfig#538 from nobodyiam/delta-sql
add delta schema to upgrade db from v0.4.0 to v0.5.0
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 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`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 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`); |