Skip to content

Commit 1548fe1

Browse files
committed
Fix typos
1 parent 9219530 commit 1548fe1

32 files changed

+37
-37
lines changed

cmd/atlas/internal/cmdapi/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ const applyLockValue = "atlas_migrate_execute"
13211321

13221322
func checkRevisionSchemaClarity(cmd *cobra.Command, c *sqlclient.Client, revisionSchemaFlag string) error {
13231323
// The "old" default behavior for the revision schema location was to store the revision table in its own schema.
1324-
// Now, the table is saved in the connected schema, if any. To keep the backwards compatability, we now require
1324+
// Now, the table is saved in the connected schema, if any. To keep the backwards compatibility, we now require
13251325
// for schema bound connections to have the schema-revision flag present if there is no revision table in the schema
13261326
// but the old default schema does have one.
13271327
if c.URL.Schema != "" && revisionSchemaFlag == "" {

cmd/atlas/internal/cmdext/cmdext_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ data "aws_rds_token" "token" {
100100
username = "root"
101101
endpoint = "localhost:3306"
102102
region = "us-east-1"
103-
profile = "errorneous"
103+
profile = "erroneous"
104104
}
105105
106106
v = data.aws_rds_token.token
@@ -112,7 +112,7 @@ v = data.aws_rds_token.token
112112
state = schemahcl.New(cmdext.SpecOptions...)
113113
)
114114
err := state.EvalBytes([]byte(doc), &v, nil)
115-
require.EqualError(t, err, "data.aws_rds_token.token: loading aws config: failed to get shared config profile, errorneous")
115+
require.EqualError(t, err, "data.aws_rds_token.token: loading aws config: failed to get shared config profile, erroneous")
116116
}
117117

118118
func TestGCPToken(t *testing.T) {

cmd/atlas/internal/docker/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type (
3939
Image string
4040
// Env vars to pass to the docker container.
4141
Env []string
42-
// Internal Port to expose anc connect to.
42+
// Internal Port to expose and connect to.
4343
Port string
4444
// Database name to create and connect on init.
4545
Database string

cmd/atlas/internal/sqlparse/pgparse/pgparse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (p *Parser) FixChange(_ migrate.Driver, s string, changes schema.Changes) (
181181

182182
func expectModify(changes schema.Changes) (*schema.ModifyTable, error) {
183183
if len(changes) != 1 {
184-
return nil, fmt.Errorf("unexpected number fo changes: %d", len(changes))
184+
return nil, fmt.Errorf("unexpected number of changes: %d", len(changes))
185185
}
186186
modify, ok := changes[0].(*schema.ModifyTable)
187187
if !ok {

cmd/atlas/internal/sqlparse/sqliteparse/sqliteparse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func (p *FileParser) FixChange(_ migrate.Driver, s string, changes schema.Change
222222
}
223223
if r, ok := stmt.RenameColumn(); ok {
224224
if len(changes) != 1 {
225-
return nil, fmt.Errorf("unexpected number fo changes: %d", len(changes))
225+
return nil, fmt.Errorf("unexpected number of changes: %d", len(changes))
226226
}
227227
modify, ok := changes[0].(*schema.ModifyTable)
228228
if !ok {

doc/md/features.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Feature Compatability
2+
title: Feature Compatibility
33
id: features
44
slug: features
55
---

doc/md/guides/database-per-tenant/02-db-groups.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Let's review the code snippet above:
148148

149149
In some cases, you may want to load target groups dynamically from an API endpoint. For example, you might have a
150150
service `tenant-svc` that provides a list of tenant databases based on some criteria. Let's suppose this service's
151-
endpoints recieve the target group ID in the path, such as `https://tenant-svc/api/target-group/{id}` and return a
151+
endpoints receive the target group ID in the path, such as `https://tenant-svc/api/target-group/{id}` and return a
152152
simple JSON payload:
153153

154154
```json

doc/md/guides/deploying/helm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Deploying schema migrations to Kubernetes with Helm
66

77
:::note Deprecation Notice
88

9-
This method of running schema migrations is deprecated an no longer recommended.
9+
This method of running schema migrations is deprecated and no longer recommended.
1010

1111
Please use the [Kubernetes Operator](k8s-argo.md) to manage schema migrations in Kubernetes.
1212

doc/md/guides/deploying/init.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Deploying schema migrations to Kubernetes with Init Containers
66

77
:::note Deprecation Notice
88

9-
This method of running schema migrations is deprecated an no longer recommended.
9+
This method of running schema migrations is deprecated and no longer recommended.
1010

1111
Please use the [Kubernetes Operator](k8s-argo.md) to manage schema migrations in Kubernetes.
1212

@@ -156,7 +156,7 @@ spec:
156156
```
157157

158158
Notice the new configuration blocks we added to our deployment manifest:
159-
* We added our secret `atlas-project` [as a volume](https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/#configure-a-volume-for-a-pod) to the
159+
* We added our secret `atlas-project` [as a volume](https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/#configure-a-volume-for-a-pod) to
160160
the deployment's PodSpec.
161161
* We add an `initContainer` named `migrate` that runs the `ghcr.io/repo/migrations:v0.1.2` image.
162162
* We mounted the `atlas-project` volume at `/etc/atlas` in our init container.

doc/md/guides/migration-tools/golang-migrate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ and it's _desired_ state.
2121

2222
For golang-migrate users, the current state can be thought of as the sum of
2323
all _up_ migrations in a migration directory. The desired state can be provided to Atlas
24-
via an a Atlas schema [HCL file](https://atlasgo.io/atlas-schema/hcl), a plain SQL file, or as a
24+
via an Atlas schema [HCL file](https://atlasgo.io/atlas-schema/hcl), a plain SQL file, or as a
2525
connection string to a database that contains the desired schema.
2626

2727
In this guide, we will show how Atlas can automatically plan schema migrations for

0 commit comments

Comments
 (0)