Skip to content

Commit

Permalink
Merge pull request apolloconfig#538 from nobodyiam/delta-sql
Browse files Browse the repository at this point in the history
add delta schema to upgrade db from v0.4.0 to v0.5.0
  • Loading branch information
lepdou authored Feb 10, 2017
2 parents 5550bd1 + ddc9d89 commit d5a9c5f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/sql/delta/v040-v050/apolloconfigdb-v040-v050.sql
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`);
7 changes: 7 additions & 0 deletions scripts/sql/delta/v040-v050/apolloportaldb-v040-v050.sql
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`);

0 comments on commit d5a9c5f

Please sign in to comment.