Restored previously deleted test case. It should be impossible to trigger on the SQL path, but better safe than sorry.

This commit is contained in:
Zach Musgrave
2021-01-26 16:47:36 -08:00
parent 0dfd25304c
commit 4f7a0afbf7

View File

@@ -92,6 +92,12 @@ func TestModifyColumn(t *testing.T) {
),
expectedRows: dtestutils.TypedRows,
},
{
name: "tag collision",
existingColumn: schema.NewColumn("id", dtestutils.IdTag, types.UUIDKind, true, schema.NotNullConstraint{}),
newColumn: schema.NewColumn("newId", dtestutils.NameTag, types.UUIDKind, true, schema.NotNullConstraint{}),
expectedErr: "two different columns with the same tag",
},
{
name: "name collision",
existingColumn: schema.NewColumn("id", dtestutils.IdTag, types.UUIDKind, true, schema.NotNullConstraint{}),