Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: typo (#1696)
p0ny7b86ff42d212
diff --git a/api/task.go b/api/task.goindex 06d360d184..a26b353118 100644--- a/api/task.go+++ b/api/task.go@@ -8,7 +8,7 @@ import ("github.com/bytebase/bytebase/plugin/vcs")-// These are special onboarding tasks for demo purpose when bootstraping the workspace.+// These are special onboarding tasks for demo purpose when bootstrapping the workspace.// OnboardingTaskID1 is the ID for onboarding task1.const OnboardingTaskID1 = 101diff --git a/server/database.go b/server/database.goindex 9a32166e63..1cf138ebe7 100644--- a/server/database.go+++ b/server/database.go@@ -357,7 +357,7 @@ func (s *Server) registerDatabaseRoutes(g *echo.Group) {}columnList, err := s.store.FindColumn(ctx, columnFind)if err != nil {- return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Failed to fetch colmun list for database id: %d, table name: %s", id, table.Name)).SetInternal(err)+ return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Failed to fetch column list for database id: %d, table name: %s", id, table.Name)).SetInternal(err)}table.ColumnList = columnList@@ -414,7 +414,7 @@ func (s *Server) registerDatabaseRoutes(g *echo.Group) {}columnList, err := s.store.FindColumn(ctx, columnFind)if err != nil {- return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Failed to fetch colmun list for database id: %d, table name: %s", id, tableName)).SetInternal(err)+ return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Failed to fetch column list for database id: %d, table name: %s", id, tableName)).SetInternal(err)}table.ColumnList = columnListdiff --git a/store/task.go b/store/task.goindex 589a7ee1db..34c6e1737e 100644--- a/store/task.go+++ b/store/task.go@@ -356,7 +356,7 @@ func (s *Store) patchTaskRaw(ctx context.Context, patch *api.TaskPatch) (*taskRa// Returns ENOTFOUND if task does not exist.func (s *Store) patchTaskRawStatus(ctx context.Context, patch *api.TaskStatusPatch) (*taskRaw, error) {// Without using serializable isolation transaction, we will get race condition and have multiple task runs inserted because- // we do a read and write on task, without guanrantee consistency on task runs.+ // we do a read and write on task, without guaranteed consistency on task runs.// Once we have multiple task runs, the task will get to unrecoverable state because find task run will fail with two active runs.tx, err := s.db.BeginTx(ctx, &sql.TxOptions{Isolation: sql.LevelSerializable})if err != nil {diff --git a/tests/schema_system_test.go b/tests/schema_system_test.goindex 4ede6c7cf4..4d4368e291 100644--- a/tests/schema_system_test.go+++ b/tests/schema_system_test.go@@ -353,7 +353,7 @@ func TestSchemaSystem(t *testing.T) {a.Equal(noSchemaReviewPolicy, result)// delete the schema review policy- err = ctl.deletePoliy(api.PolicyDelete{+ err = ctl.deletePolicy(api.PolicyDelete{EnvironmentID: prodEnvironment.ID,Type: api.PolicyTypeSchemaReview,})diff --git a/tests/tests.go b/tests/tests.goindex 9f42075b87..5da90ff0b8 100644--- a/tests/tests.go+++ b/tests/tests.go@@ -1336,7 +1336,7 @@ func (ctl *controller) upsertPolicy(policyUpsert api.PolicyUpsert) error {}// deletePolicy deletes the archived policy.-func (ctl *controller) deletePoliy(policyDelete api.PolicyDelete) error {+func (ctl *controller) deletePolicy(policyDelete api.PolicyDelete) error {_, err := ctl.delete(fmt.Sprintf("/policy/environment/%d?type=%s", policyDelete.EnvironmentID, policyDelete.Type), new(bytes.Buffer))if err != nil {return err