Skip to content

Commit 9ca2392

Browse files
authored
chore(scripts): Fix wording (#7349)
1 parent 3626041 commit 9ca2392

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

scripts/table_diff/changes/changes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func getColumnChanges(file *gitdiff.File, table string) (changes []change) {
155155
}
156156
} else {
157157
changes = append(changes, change{
158-
Text: fmt.Sprintf("Table %s: column removed %s from table", backtickStrings(table, deletedName)...),
158+
Text: fmt.Sprintf("Table %s: column %s removed from table", backtickStrings(table, deletedName)...),
159159
Breaking: true,
160160
})
161161
}

scripts/table_diff/changes/changes_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func Test_getChanges(t *testing.T) {
8585
Breaking: true,
8686
},
8787
{
88-
Text: "Table `azure_appservice_functions`: column removed `web_app_id` from table",
88+
Text: "Table `azure_appservice_functions`: column `web_app_id` removed from table",
8989
Breaking: true,
9090
},
9191
{
@@ -141,35 +141,35 @@ func Test_getChanges(t *testing.T) {
141141
Breaking: true,
142142
},
143143
{
144-
Text: "Table `azure_subscription_tenants`: column removed `name` from table",
144+
Text: "Table `azure_subscription_tenants`: column `name` removed from table",
145145
Breaking: true,
146146
},
147147
{
148-
Text: "Table `azure_subscription_tenants`: column removed `properties_notes` from table",
148+
Text: "Table `azure_subscription_tenants`: column `properties_notes` removed from table",
149149
Breaking: true,
150150
},
151151
{
152-
Text: "Table `azure_subscription_tenants`: column removed `properties_source_id` from table",
152+
Text: "Table `azure_subscription_tenants`: column `properties_source_id` removed from table",
153153
Breaking: true,
154154
},
155155
{
156-
Text: "Table `azure_subscription_tenants`: column removed `properties_target_id` from table",
156+
Text: "Table `azure_subscription_tenants`: column `properties_target_id` removed from table",
157157
Breaking: true,
158158
},
159159
{
160160
Text: "Table `azure_subscription_tenants`: column added with name `tenant_id` and type `String`",
161161
Breaking: false,
162162
},
163163
{
164-
Text: "Table `azure_subscriptions`: column removed `managed_by_tenants` from table",
164+
Text: "Table `azure_subscriptions`: column `managed_by_tenants` removed from table",
165165
Breaking: true,
166166
},
167167
{
168-
Text: "Table `azure_subscriptions`: column removed `tags` from table",
168+
Text: "Table `azure_subscriptions`: column `tags` removed from table",
169169
Breaking: true,
170170
},
171171
{
172-
Text: "Table `azure_subscriptions`: column removed `tenant_id` from table",
172+
Text: "Table `azure_subscriptions`: column `tenant_id` removed from table",
173173
Breaking: true,
174174
},
175175
{

0 commit comments

Comments
 (0)