-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ZhangJian He
committed
Feb 27, 2023
1 parent
82dc199
commit e03a27c
Showing
9 changed files
with
85 additions
and
35 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
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
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 |
---|---|---|
|
@@ -13,6 +13,25 @@ | |
-- See the License for the specific language governing permissions and | ||
-- limitations under the License. | ||
-- | ||
ALTER TABLE APP ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE APP ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE APP ALTER COLUMN ORGNAME VARCHAR(255) NULL; | ||
ALTER TABLE APP ALTER COLUMN ORGID VARCHAR(255) NULL; | ||
ALTER TABLE Cluster ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Cluster ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE Cluster ALTER COLUMN ParentClusterId BIGINT DEFAULT 0; | ||
ALTER TABLE Namespace ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Namespace ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE Item ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Item ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE RELEASE ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE RELEASE ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE ServerConfig ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE ServerConfig ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE ServerConfig ALTER COLUMN COMMENT VARCHAR(255) NULL; | ||
ALTER TABLE Audit ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Audit ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
|
||
INSERT INTO App (AppId, Name, OwnerName, OwnerEmail) VALUES ('100003171','apollo-config-service','刘一鸣','[email protected]'); | ||
INSERT INTO App (AppId, Name, OwnerName, OwnerEmail) VALUES ('100003172','apollo-admin-service','宋顺','[email protected]'); | ||
INSERT INTO App (AppId, Name, OwnerName, OwnerEmail) VALUES ('100003173','apollo-portal','张乐','[email protected]'); | ||
|
@@ -26,6 +45,9 @@ INSERT INTO Cluster (AppId, Name) VALUES ('100003173', 'default'); | |
INSERT INTO Cluster (AppId, Name) VALUES ('100003173', 'cluster3'); | ||
INSERT INTO Cluster (AppId, Name) VALUES ('fxhermesproducer', 'default'); | ||
|
||
ALTER TABLE AppNamespace ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE AppNamespace ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE AppNamespace ALTER COLUMN Format VARCHAR(255) NULL; | ||
INSERT INTO AppNamespace (AppId, Name) VALUES ('100003171', 'application'); | ||
INSERT INTO AppNamespace (AppId, Name) VALUES ('100003171', 'fx.apollo.config'); | ||
INSERT INTO AppNamespace (AppId, Name) VALUES ('100003172', 'application'); | ||
|
@@ -40,10 +62,9 @@ INSERT INTO Namespace (Id, AppId, ClusterName, NamespaceName) VALUES (2, 'fxherm | |
INSERT INTO Namespace (Id, AppId, ClusterName, NamespaceName) VALUES (3, '100003172', 'default', 'application'); | ||
INSERT INTO Namespace (Id, AppId, ClusterName, NamespaceName) VALUES (4, '100003173', 'default', 'application'); | ||
|
||
INSERT INTO Item (NamespaceId, `Key`, Value, Comment) VALUES (1, 'k1', 'v1', 'comment1'); | ||
INSERT INTO Item (NamespaceId, `Key`, Value, Comment) VALUES (1, 'k2', 'v2', 'comment2'); | ||
INSERT INTO Item (NamespaceId, `Key`, Value, Comment) VALUES (2, 'k3', 'v3', 'comment3'); | ||
INSERT INTO Item (NamespaceId, `Key`, Value, Comment, LineNum) VALUES (5, 'k1', 'v4', 'comment4',1); | ||
INSERT INTO Item (NamespaceId, "Key", "Value", Comment) VALUES (1, 'k1', 'v1', 'comment1'); | ||
INSERT INTO Item (NamespaceId, "Key", "Value", Comment) VALUES (1, 'k2', 'v2', 'comment2'); | ||
INSERT INTO Item (NamespaceId, "Key", "Value", Comment) VALUES (2, 'k3', 'v3', 'comment3'); | ||
INSERT INTO Item (NamespaceId, "Key", "Value", Comment, LineNum) VALUES (5, 'k1', 'v4', 'comment4',1); | ||
|
||
INSERT INTO RELEASE (ReleaseKey, Name, Comment, AppId, ClusterName, NamespaceName, Configurations) VALUES ('TEST-RELEASE-KEY', 'REV1','First Release','100003171', 'default', 'application', '{"k1":"v1"}'); | ||
|
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
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
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -13,11 +13,39 @@ | |
-- See the License for the specific language governing permissions and | ||
-- limitations under the License. | ||
-- | ||
ALTER TABLE APP ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE APP ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE APP ALTER COLUMN ORGNAME VARCHAR(255) NULL; | ||
ALTER TABLE APP ALTER COLUMN ORGID VARCHAR(255) NULL; | ||
ALTER TABLE Cluster ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Cluster ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE Cluster ALTER COLUMN ParentClusterId BIGINT DEFAULT 0; | ||
ALTER TABLE Namespace ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Namespace ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE Item ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Item ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE RELEASE ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE RELEASE ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE ServerConfig ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE ServerConfig ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE ServerConfig ALTER COLUMN COMMENT VARCHAR(255) NULL; | ||
ALTER TABLE Audit ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Audit ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE GrayReleaseRule ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE GrayReleaseRule ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
|
||
ALTER TABLE APP ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE APP ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE APP ALTER COLUMN ORGNAME VARCHAR(255) NULL; | ||
ALTER TABLE APP ALTER COLUMN ORGID VARCHAR(255) NULL; | ||
INSERT INTO App (AppId, Name, OwnerName, OwnerEmail) VALUES ('100003171','apollo-config-service','刘一鸣','[email protected]'); | ||
INSERT INTO App (AppId, Name, OwnerName, OwnerEmail) VALUES ('100003172','apollo-admin-service','宋顺','[email protected]'); | ||
INSERT INTO App (AppId, Name, OwnerName, OwnerEmail) VALUES ('100003173','apollo-portal','张乐','[email protected]'); | ||
INSERT INTO App (AppId, Name, OwnerName, OwnerEmail) VALUES ('fxhermesproducer','fx-hermes-producer','梁锦华','[email protected]'); | ||
|
||
ALTER TABLE Cluster ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Cluster ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE Cluster ALTER COLUMN ParentClusterId BIGINT NULL; | ||
INSERT INTO Cluster (AppId, Name) VALUES ('100003171', 'default'); | ||
INSERT INTO Cluster (AppId, Name) VALUES ('100003171', 'cluster1'); | ||
INSERT INTO Cluster (AppId, Name) VALUES ('100003172', 'default'); | ||
|
@@ -26,6 +54,9 @@ INSERT INTO Cluster (AppId, Name) VALUES ('100003173', 'default'); | |
INSERT INTO Cluster (AppId, Name) VALUES ('100003173', 'cluster3'); | ||
INSERT INTO Cluster (AppId, Name) VALUES ('fxhermesproducer', 'default'); | ||
|
||
ALTER TABLE AppNamespace ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE AppNamespace ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
ALTER TABLE AppNamespace ALTER COLUMN Format VARCHAR(255) NULL; | ||
INSERT INTO AppNamespace (AppId, Name) VALUES ('100003171', 'application'); | ||
INSERT INTO AppNamespace (AppId, Name) VALUES ('100003171', 'fx.apollo.config'); | ||
INSERT INTO AppNamespace (AppId, Name) VALUES ('100003172', 'application'); | ||
|
@@ -34,16 +65,21 @@ INSERT INTO AppNamespace (AppId, Name) VALUES ('100003173', 'application'); | |
INSERT INTO AppNamespace (AppId, Name) VALUES ('100003173', 'fx.apollo.portal'); | ||
INSERT INTO AppNamespace (AppID, Name) VALUES ('fxhermesproducer', 'fx.hermes.producer'); | ||
|
||
ALTER TABLE Namespace ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Namespace ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
INSERT INTO Namespace (Id, AppId, ClusterName, NamespaceName) VALUES (1, '100003171', 'default', 'application'); | ||
INSERT INTO Namespace (Id, AppId, ClusterName, NamespaceName) VALUES (5, '100003171', 'cluster1', 'application'); | ||
INSERT INTO Namespace (Id, AppId, ClusterName, NamespaceName) VALUES (2, 'fxhermesproducer', 'default', 'fx.hermes.producer'); | ||
INSERT INTO Namespace (Id, AppId, ClusterName, NamespaceName) VALUES (3, '100003172', 'default', 'application'); | ||
INSERT INTO Namespace (Id, AppId, ClusterName, NamespaceName) VALUES (4, '100003173', 'default', 'application'); | ||
INSERT INTO Namespace (Id, AppId, ClusterName, NamespaceName) VALUES (5, '100003171', 'default', 'application'); | ||
|
||
INSERT INTO Item (NamespaceId, `Key`, Value, Comment) VALUES (1, 'k1', 'v1', 'comment1'); | ||
INSERT INTO Item (NamespaceId, `Key`, Value, Comment) VALUES (1, 'k2', 'v2', 'comment2'); | ||
INSERT INTO Item (NamespaceId, `Key`, Value, Comment) VALUES (2, 'k3', 'v3', 'comment3'); | ||
INSERT INTO Item (NamespaceId, `Key`, Value, Comment) VALUES (5, 'k3', 'v4', 'comment4'); | ||
ALTER TABLE Item ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE Item ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
INSERT INTO Item (NamespaceId, "Key", "Value", Comment) VALUES (1, 'k1', 'v1', 'comment1'); | ||
INSERT INTO Item (NamespaceId, "Key", "Value", Comment) VALUES (1, 'k2', 'v2', 'comment2'); | ||
INSERT INTO Item (NamespaceId, "Key", "Value", Comment) VALUES (2, 'k3', 'v3', 'comment3'); | ||
INSERT INTO Item (NamespaceId, "Key", "Value", Comment, LineNum) VALUES (5, 'k1', 'v4', 'comment4',1); | ||
|
||
ALTER TABLE RELEASE ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL; | ||
ALTER TABLE RELEASE ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL; | ||
INSERT INTO RELEASE (ReleaseKey, Name, Comment, AppId, ClusterName, NamespaceName, Configurations) VALUES ('TEST-RELEASE-KEY', 'REV1','First Release','100003171', 'default', 'application', '{"k1":"v1"}'); | ||
|