Skip to content

Commit 1fcbb08

Browse files
committed
chore: fix typos
1 parent 7742250 commit 1fcbb08

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

internal/migration_acceptance_tests/function_cases_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ var functionAcceptanceTestCases = []acceptanceTestCase{
134134
RETURNS NULL ON NULL INPUT
135135
RETURN CONCAT(a, b);
136136
137-
-- identical function on a different schem
137+
-- identical function on a different schema
138138
CREATE SCHEMA schema_2;
139139
CREATE FUNCTION schema_2.add(a integer, b integer) RETURNS text
140140
LANGUAGE SQL
141141
IMMUTABLE
142142
RETURNS NULL ON NULL INPUT
143-
RETURN CONCAT(a, b);
143+
RETURN CONCAT(a, b);
144144
`},
145145
expectedHazardTypes: []diff.MigrationHazardType{diff.MigrationHazardTypeHasUntrackableDependencies},
146146
},
@@ -248,7 +248,7 @@ var functionAcceptanceTestCases = []acceptanceTestCase{
248248
LANGUAGE SQL
249249
IMMUTABLE
250250
RETURNS NULL ON NULL INPUT
251-
RETURN CONCAT(a, b);
251+
RETURN CONCAT(a, b);
252252
`,
253253
},
254254
expectedHazardTypes: []diff.MigrationHazardType{diff.MigrationHazardTypeHasUntrackableDependencies},

pkg/diff/materialized_view_sql_generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func buildMaterializedViewDiff(
3535
// and that column/table is deleted/recreated. In part, this is because we cannot depend on individual column
3636
// changes...all added and removes columns are combined into the same SQL vertex.
3737
// - See https://github.com/stripe/pg-schema-diff/issues/135#issuecomment-2357382217 for details.
38-
// - For some table X, it is currently not possible to create a SQL statement outside the table sql genreator
38+
// - For some table X, it is currently not possible to create a SQL statement outside the table sql generator
3939
// that comes before a column Y's delete statement but after a column Z's add statement.
4040
for _, t := range old.TableDependencies {
4141
if _, ok := deletedTablesByName[t.GetName()]; ok {

pkg/diff/sql_generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ func buildIndexesByTableNameMap(indexes []schema.Index) map[string][]schema.Inde
695695

696696
// buildChildrenByPartitionedIndexNameMap builds a map of indexes by their parent index name. This map will include
697697
// all descendents, not just direct descendents. For example, if foobar idx has 5 children and each of those children
698-
// has 5 children, the slice for foobar index wil contain 30 indexes (the 5 direct children and the 25 "grandchildren")
698+
// has 5 children, the slice for foobar index will contain 30 indexes (the 5 direct children and the 25 "grandchildren")
699699
func buildChildrenByPartitionedIndexNameMap(indexes []schema.Index) map[string][]schema.Index {
700700
// Build a map of children by their direct parent index
701701
var childrenByDirectParentIdxName = make(map[string][]schema.Index)

pkg/diff/view_sql_generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func buildViewDiff(
3535
// and that column/table is deleted/recreated. In part, this is because we cannot depend on individual column
3636
// changes...all added and removes columns are combined into the same SQL vertex.
3737
// - See https://github.com/stripe/pg-schema-diff/issues/135#issuecomment-2357382217 for details.
38-
// - For some table X, it is currently not possible to create a SQL statement outside the table sql genreator
38+
// - For some table X, it is currently not possible to create a SQL statement outside the table sql generator
3939
// that comes before a column Y's delete statement but after a column Z's add statement.
4040
for _, t := range old.TableDependencies {
4141
if _, ok := deletedTablesByName[t.GetName()]; ok {

0 commit comments

Comments
 (0)