allow switching schema field names when renaming fields

This commit is contained in:
Gani Georgiev
2022-07-18 16:26:37 +03:00
parent 47fc9b1066
commit e01f76d37b
14 changed files with 181 additions and 157 deletions

View File

@@ -261,7 +261,7 @@ func TestCollectionUpsertSubmit(t *testing.T) {
}`,
[]string{"schema"},
},
// update failure - rename fields to existing field names (aka. reusing field names)
// update success - rename fields to existing field names (aka. reusing field names)
{
"test_new",
`{
@@ -270,7 +270,7 @@ func TestCollectionUpsertSubmit(t *testing.T) {
{"id":"b123456","name":"test1","type":"email"}
]
}`,
[]string{"schema"},
[]string{},
},
// update failure - existing name
{