Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(tenancy): add DatabaseName to UpdateSchemaDetail for tenant mode project schema update (#241)
spinningbot61adf033b436
diff --git a/api/activity.go b/api/activity.goindex 56fda0fb98..af314239fa 100644--- a/api/activity.go+++ b/api/activity.go@@ -170,7 +170,7 @@ type ActivityPipelineTaskFileCommitPayload struct {CommitID string `json:"commitId,omitempty"`}-// ActivityPipelineTaskStatementUpdatePayload+// ActivityPipelineTaskStatementUpdatePayload is the API message payloads for pipeline task statement updates.type ActivityPipelineTaskStatementUpdatePayload struct {TaskID int `json:"taskId"`OldStatement string `json:"oldStatement,omitempty"`diff --git a/api/issue.go b/api/issue.goindex 87135e4736..2f89f283a9 100644--- a/api/issue.go+++ b/api/issue.go@@ -136,6 +136,9 @@ type CreateDatabaseContext struct {type UpdateSchemaDetail struct {// DatabaseId is the ID of a database.DatabaseID int `json:"databaseId"`+ // DatabaseName is the name of databases, mutually exclusive to DatabaseId.+ // This should be set when a project is in tenant mode, and ProjectID is derived from IssueCreate.+ DatabaseName string `json:"databaseName"`// Statement is the statement to update database schema.Statement string `json:"statement"`// Statement is the rollback statement of the statement.@@ -145,9 +148,12 @@ type UpdateSchemaDetail struct {// UpdateSchemaContext is the issue create context for updating database schema.type UpdateSchemaContext struct {// MigrationType is the type of a migration.- MigrationType db.MigrationType `json:"migrationType"`+ MigrationType db.MigrationType `json:"migrationType"`+ // UpdateSchemaDetail is the details of schema update.+ // When a project is in tenant mode, there should be one item in the list.UpdateSchemaDetailList []*UpdateSchemaDetail `json:"updateSchemaDetailList"`- VCSPushEvent *common.VCSPushEvent+ // VCSPushEvent is the event information for VCS push.+ VCSPushEvent *common.VCSPushEvent}// IssueFind is the API message for finding issues.