Commit d5a9c5fe by 张乐 Committed by GitHub

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
# 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
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment